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

158
Views
runtime.js:7 Error no detectado: [RequireAuth] no es un componente <Route>. Todos los componentes secundarios de <Routes> deben ser <Route> o <React.Fragment>
**react route****I wanted to make a route that's secure but it's not working.** <Routes> <Route path='/' element={<Home></Home>}></Route> <Route path='/home' element={<Home></Home>}></Route> <Route path='/register' element={<Register></Register>}></Route> <Route path='/login' element={<Login></Login>}></Route> <RequireAuth> <Route path='/manageproducts' element={<ManageProduct></ManageProduct>}></Route> </RequireAuth> </Routes> </div>

Aquí implementé require auth pero no funciona

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

El componente RequireAuth debe envolverse dentro de una Route de la siguiente manera:

 <Route path="/manageproducts" element={ <RequireAuth> <ManageProduct/> </RequireAuth> } />;

Esto le daría a Routes un elemento secundario de Route y resolvería el error que está recibiendo

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