A
A
Alexey1002019-07-11 11:01:16
css
Alexey100, 2019-07-11 11:01:16

Where in styled components to write global styles?

Hello.
Please tell me, when using styled components, where would it be more correct to write general styles for the page? For example, the styles of the arrangement of elements relative to each other, the grid or media queries? In injectGlobal or somewhere else?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dev null, 2019-07-11
@Aleksey100

Depends on the project what you are using and how. But, as a rule, yes, it’s more convenient to keep global styles there, just keep in mind that in the 4th version , this is used instead of injectGlobal

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question