DEV Community

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

Collapse
 
natelindev profile image
Nathaniel

How about using compiled css-in-js? They only cost is build time.

Collapse
 
puruvj profile image
PuruVJ

I assume you're referring to libraries like Linaria and vanilla-extract?

Collapse
 
natelindev profile image
Nathaniel

no there's literally a libaray called compiled css-in-js

Thread Thread
 
puruvj profile image
PuruVJ

Oh yeah, Atlassian's solution. Its good too, but by the time I got to know about it, I had already merged the PR, wasn't going to go back. Plus I found it had similar issues about path aliases, so it wouldn;t have been very useful, still