DEV Community

Discussion on: Styled components cheat sheet for React

Collapse
jupyter1186 profile image
Ahmad

I will definitely give it a shot with my next project. But how good is it in DRY; compared to sass with reusable modules/components?

Collapse
keefdrive profile image
Keerthi Author

In my opinion, they (sass, css modules, and styled-components) are all good if you implement them correctly and sensibly so that you are not re-inventing the wheel. Using sass , there is that little overhead of learning how to write mixins/functions etc, whereas in styled-components you apply the same JS programming logic, this results in less of a learning curve for react developers.

Collapse
jupyter1186 profile image
Ahmad

Hmm thanks for the feedback will keep thst in my mind. Thanks 👋