What’s new in styled-components 5.0
Blog post from LogRocket
Styled-components, a popular CSS-in-JS styling framework, has released a new version known as "beast mode," which offers significant performance enhancements including 50% faster server-side rendering, 20% faster client-side rendering, a 19% smaller bundle size, and RTL support without breaking changes. This update, driven by a newly rebuilt core stylesheet engine, results in cleaner code with reduced component nesting and improved memory efficiency due to React hooks refactoring. The new version also brings enhancements to the StyleSheetManager, allowing the extension of the CSS parser with plugins, supporting fully automatic RTL styles for custom applications. The library, widely adopted and regarded as an industry-standard framework, continues to evolve with contributions from its global core team, who are actively seeking feedback from the community to further refine its capabilities. The team invites users to upgrade to this version to benefit from these advancements while supporting the ongoing growth and maintenance of the project through contributions to its OpenCollective.