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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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
?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.