Hacker News new | ask | show | jobs
by vcarl 2739 days 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.
1 comments

Not 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.

Not 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

Plugin 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.`