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.
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.
What makes
styled-components
garbage?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.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.
It's trying to solve a problem that doesn't actually exist.