Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

212
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda