DEV Community

Discussion on: CSS Modules vs CSS-in-JS. Who wins?

Collapse
kibobishtrudelz profile image
Petar Kolev

Did you ever used styled-components lib? If yes - for how long?
I personally have used them both and in my experience css-in-js is the more convenient way to go when it comes to write React applications. Yes, with css-in-js you don't have styled caching but this is a small price to pay for all the advantages you have with it over css modules.
This article is nice but it's definitely not covering all that can be said about css-in-js.