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

319
Views
Blank page in react after using navigation

I created a React app and it ran perfectly fine with simple HTML/CSS a header and a button. But when I added <Routes>, <Route> and navigation.navigate, I get a blank screen with no errors in the console that I used to run the app. However, there is an error in the browser console, stating "Cannot read property of undefined 'getElementById".

I have tried giving the main parent div id='root' as that is the variable that was passed to getElementById. I am not sure what other solutions to try as other questions have had different situations/contexts.

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

0

Are you trying to navigate to a different page?

If so try using react-router-dom

Here's the link to the documentation https://github.com/remix-run/react-router/blob/main/docs/getting-started/tutorial.md

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!