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

153
Views
React router v6 fail to render the resource

router

function Details() {
  return (
    <>
      <h3>Details</h3>
    </>
  )
}
function Authsos() {
  return (
    <>
      <h3>Authsos</h3>
    </>
  )
}
ReactDOM.render(
  <React.StrictMode>

    <BrowserRouter>
      <Header />
      <Routes>
        {/* <Route path="/" element={<Authsos />}></Authsos> */}
        <Route path="/author/*" element={<Authsos />} >
        </Route>
        <Route path="/author/:id" element={<Details />} />
        <Route path="/*" element={<Home />} />
      </Routes>
      {/* <Footer /> */}
    </BrowserRouter>

  </React.StrictMode>,
  document.getElementById('root')
);

But when I use "localhost:3000/author/exampleId" page returns but resources like .css extension, .js return index.html page as page source view like

...
<body>
  <div id='root'></div>
</body>
...

Image: enter image description here
I'm a newbie on react langue so I don't really understand it
Thanks for reading <3

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!