CSS was invented at a time when the most widely used browser was Netscape. It has been around for quite some time, and while it has changed and improved considerably since then, it has not kept pace with recent innovations in the web.
React popularized a component-based development experience, where every part of your website is a self-contained entity. The problem is, CSS wasn’t meant to work like that. While “features” like inheritance and global names were great in the beginning, they present serious challenges when working with CSS.
So what is the best way to style your react application? Drawing on his work with Glen Maddern, Max Stoiber offers an overview of styled-components, a new way to style React apps that takes the best of CSS.
Max Stoiber is the technical cofounder of Spectrum, the creator of react-boilerplate, one of the most famous React starter kits, and the cocreator of styled-components, one of the most widely used libraries to style React apps. Max also takes care of KeystoneJS, the biggest Node.js CMS, and Elemental UI, a popular React UI library.
©2017, O'Reilly Media, Inc. • (800) 889-8969 or (707) 827-7019 • Monday-Friday 7:30am-5pm PT • All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners. • firstname.lastname@example.org