5 ms·
We've not run into any performance issues in our 80k LoC JS app using styled components 100%. I'm not sure it's accurate to say it's ditched static styles expor
by vcarl 8y ago
We've not run into any performance issues in our 80k LoC JS app using styled components 100%. I'm not sure it's accurate to say it's ditched static styles exporting, with babel-plugin-styled-components we're getting a handful of style tags on the page that are generated at build time.
- ex3ndr 8y agoNot sure about your stack, but styled-components declared it as deprecated and babel-plugin-styled-components page doesn't show anything about static style extractions. I think it depends on your requirements, we have a messaging app and i need to switch chats in < 30ms without caching of pages. Otherwise page will be junky for non-chrome browsers.
- vcarl 8y agoNot sure where you're getting that it's deprecated. Both the repo itself and the styled components website list it as a highly recommended (but optional) addition. https://www.styled-components.com/docs/tooling#babel-plugin https://www.styled-components.com/docs/tooling#babel-plugin
- ex3ndr 8y agoPlugin is not deprecated, sure, but it doesn't do static style extraction: `This plugin adds support for server-side rendering, minification of styles, and a nicer debugging experience.`