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

514
Visualizações
Why won't react import and use my css styles?

I built a website in adobe XD and then exported to html and now I am trying to get the react component to accept css styling! I've tried using css-loader, here's my config,

module: {
  rules: [
      // use ts-loader for ts and js files so all files are converted to es5
      { test: /\.(tsx?|js)$/, exclude: /node_modules/, loader: 'ts-loader' },
      { test: /\.js$/, loader: 'source-map-loader' },
      { test: /\.css$/, use: ['css-loader']},
  ],
},

I import my css by using import "./styles.css"

which is in the src folder, and I've styled through devtools and not issue there. I don't get any errors in the console just the fact that the css doesn't ever actually work! I've battled this one for a while now so if you see something I am doing wrong let me know! I just started react but I've done web design before and a unstyled plain html page looks terrible!

here: Structure of my file system

about 4 years ago · Juan Pablo Isaza
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