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

333
Views
¿Cómo usar Suspense con React-Router-Dom v6?

Estoy tratando de migrar react-router-dom de v5 a v6 y tengo problemas, aquí está mi implementación con el uso de Suspense

 <Suspense fallback={ <div className="center-div"> <LoadingDots /> </div> } > <Routes> {routes.map((route, index) => ( <Route path={route.path} key={route.path} element={lazy(() => import("./features/apps/AppsListPage"))} //it is route.component but for simplify example i'm show it like this /> ))} </Routes> </Suspense>

¿Alguien puede decirme por qué el navegador me devuelve este tipo de error?

 index.tsx:13 Error: Objects are not valid as a React child (found: object with keys {$$typeof, _payload, _init}). If you meant to render a collection of children, use an array instead.

Creo que fue causado por usar lazy en element prop, pero ¿puedo arreglar esto?

¡Gracias por cualquier ayuda!

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!