S
S
shading2020-05-15 12:15:00
css
shading, 2020-05-15 12:15:00

Global react app styles override component styles?

making a reset file

export function reset() {
  return `
        #App {
              border: 0;
              margin: 0;
              padding: 0;
        }

I insert it into the root of the application through
injectGlobal`
  ${reset()}
`;

In theory, these are the styles that are written first, they should be overridden by the styles that are written in the components, but the opposite happens. I can't understand why.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question