DEV Community

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

Collapse
 
Sloan, the sloth mascot
Comment deleted
Collapse
 
thekooldev1232 profile image
thedev1232

How about having to deal with libraries like Material UI with next js?

I have an issue to decide whether to use just makeStyles function or should we use styled components?

My main concern is code longevity and maintenance without any issues

Collapse
 
alienpr84 profile image
Alien Padilla Rodriguez

@Petar Kokev If something I learned from this years of working with React and other projects is that the correct library for project isn't the correct library for another. So the mos important think that we need to do is select the tools, libraries and technologies that fit better to the current project. In this case you can't use Styled-components on sites that require a good SEO, becouse the mos important think here is the SEO and you cant sacrify it.