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

193
Vistas
React automatically importing all the CSS

So I'm doing a React App, Where the css files remains on src/dist/css, where src is located in the same local of App.js, the thing is I just want to import one single CSS file, but when I'm going to see every css file were automatically imported somehow.

I want to prevent this, because it's conflicting with the normal css screen.

These are the only things I'm Importing. ( IMAGE )

But All of these are being imported, I don't know if is something with React or the Server.. ( IMAGE )

EDIT: I figured out its because of React Router, Who is importing all the CSS to the App.JS, Still don't know how to prevent this.

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

There is no way to prevent this. Alternatives that you can look at are:

  1. use BEM naming to have no conflicts all over the code.
  2. use module.css, CSS module is a simple thing that can help you resolve the conflict without changing much of the CSS you have written.
about 4 years ago · Juan Pablo Isaza Denunciar

0

i recommend you using styled-components or module.css. and tailwind also.

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