DEV Community

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

Collapse
 
alphavader profile image
KB

I agree in the performance side.. My experience is, when the project is getting really really big, styled components are a lot better to maintain.

Collapse
 
puruvj profile image
PuruVJ

Definitely, if its a team. For this project, its just me(Well, now there are more thankfully :) ), so maintainability isn't a huge problem. Plus I force myself to keep my components less than 60 lines(Roughly, not a hard limit), so the CSS is smaller too, so its automatically maintainable. Plus the CSS variables theming works pretty well, so that doesn't get in the way too 😉

Collapse
 
bryanwaddington profile image
Bryan Waddington

My experience is, when the project is getting really really big, styled components are a lot better to maintain.

Please could you explain why that is, thanks.