Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

503
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!