Answer the question
In order to leave comments, you need to log in
How to reset styles in styled components?
Can you please tell me how to reset styles in styled components?
I know that there is createGlobalStyle, but how can I add normalize.css or reset.css there, for example?
I will be grateful for help
Answer the question
In order to leave comments, you need to log in
Either pull out the necessary styles to reset and specify in createGlobalStyle, or there is a styled-normalize library , just insert the component above the application:
...
import { Normalize } from 'styled-normalize'
<Normalize />
<App />
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question