Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

214
Visualizações
How to style style for different routes in React?

I am making an application with three Routers: localhost/login and localhost/admin, localhost Different styles.css set for each route When imported in different js files of different styles.css, they are superimposed on the same page. How do I restrict styles to a single route?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Did you mean some of the styling of the other components are applyinh on the other route's components?

Try using different classNames instead of using the same classNames which is a big problem I had with react since React is sort of utilizing only one HTML.

You might be interested in css modules to make them scoped and become only locally available instead of using them by priority when available just like what your current css does

CSS MODULES INFO HERE

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda