4 ms·
styled-components works fine with unejected create-react-app, I use this combination all of the time. Server-side rendering would probably still need ejecting,
by denisw 9y ago
styled-components works fine with unejected create-react-app, I use this combination all of the time. Server-side rendering would probably still need ejecting, though, for access to the Webpack and Babel configuration. Same for hot module replacement, which in create-react-app is only enabled for CSS files as far as I know.
- nilliams 9y agoWebpack's HMR (hot reloading) of JS does work with create-react-app, but only if you use an external state store (like Redux), see [1]. The 'React Hot Loader' [2] module, which maintains local React component state is not included yet. [1] https://github.com/facebookincubator/create-react-app/issues/93#issuecomment-278625166 https://github.com/facebookincubator/create-react-app/issues... [2] https://github.com/gaearon/react-hot-loader https://github.com/gaearon/react-hot-loader