A
A
Alexander2021-06-19 13:27:03
React
Alexander, 2021-06-19 13:27:03

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

1 answer(s)
A
Alexey, 2021-06-19
@axrising

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 />

You can also insert it through createGlobalStyle, everything in the dock is styled-normalize
Similarly for reset css

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question