I swore never to use CSS in JS, I was wrong (2017)(hackernoon.com) |
I swore never to use CSS in JS, I was wrong (2017)(hackernoon.com) |
Previous to CSS in JS, component libraries had to incude additional installation instructions ranging from "include this pre-minified CSS file and don't use the same classnames" to "setup a custom sass build step"; and customizable theming was a crapshoot. material-ui is practically `npm install` and go (well, it does need Roboto font, but thats a 1liner). Both theming and per-component overrides are simple and idiomatic.