Hacker News new | past | comments | ask | show | jobs | submit login
I swore never to use CSS in JS, I was wrong (2017) (hackernoon.com)
3 points by tal_berzniz on March 9, 2018 | hide | past | favorite | 1 comment



I was convinced about CSS in JS after using http://www.material-ui.com/, which remains the easiest-to-integrate JS component library I've ever used.

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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: