DEV Community

Discussion on: What is your pettiest programming-related opinion?

Collapse
 
zzzachzzz profile image
Zach Rosenberger

What makes styled-components garbage?

Thread Thread
 
aleksandrhovhannisyan profile image
Aleksandr Hovhannisyan

Because anything you can do in styled-components you can also do in plain CSS stylesheets + JS, using proper class names. You can even pass props and conditionally apply different class names.

Thread Thread
 
zzzachzzz profile image
Zach Rosenberger

Yes, the same goal can be achieved with plain CSS stylesheets + JS, but I don't see why that makes styled-components garbage. I suppose it comes down to preference for minor improvements with one option for styling over another.

Thread Thread
 
aleksandrhovhannisyan profile image
Aleksandr Hovhannisyan

It's trying to solve a problem that doesn't actually exist.