DEV Community

Discussion on: Why I moved from Styled Components to (S)CSS modules

Collapse
 
alekseiberezkin profile image
Aleksei Berezkin

No-runtime CSS-in-JS seems like a good compromise! Are there any cons you aware of? What comes into my mind — they patch JS code which is fragile IMO.

Collapse
 
puruvj profile image
PuruVJ

I tried Linaria, but it didn't work with Vite with the aliases and all, so had to settle for CSS Modules. No regrets though, CSS modules are a great experience too :)