DEV Community

Discussion on: Why I like using Styled Components in React

Collapse
 
harshhhdev profile image
Harsh Singh

I agree. Styled Components is a very powerful tool, and in my opinion the better alternative over using CSS in React.

Do you prefer to have a single file CSS file with the global styled, or use createGlobalStyle?

Collapse
 
ahmadallehyany profile image
Ahmad Allehyany

Yes! I like to export a global component I use in my app.js or index.js using createGlobalStyle. So far I haven't had to use it for things other than border-box or resetting, though.