Remember the first time you wrote some html/css? It was amazing, right?
<div style="color: blue">Hello world</div>
So simple, so...
For further actions, you may consider blocking this person and/or reporting abuse
With React scripts 2.0+ all you need to do to get going with CSS modules is just change the name of the style sheet to have
.module.
in the name.For example
button.module.css/scss/sass/etc
.Couple that with a global index.css, BEM conventions, and use css variables, keeps everything pretty easy and manageable for the way I do things.
That's amazing!
Well, not quite. Especially with possible package duplication in mind driven by too many breaking changes made in the past (and probably in the future).
Just a curiosity: have you kept in consideration others css-in-js libraries like Linaria.js, css-blocks, aphrodite, jss in the pros and cons analysis?
I have :)
The comparison table linked in the post also helped: github.com/MicheleBertoli/css-in-js
I find css modules more convenient to use than CSS-in-JS approach. What do people are using these days in 2020?