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

79
Views
How to navigate within page in react?

For my home page I have my route as <Route exact path="/" ><Home /></Route> and for my docs page I have my route as <Route exact path="/docs" ><Home /></Route>. I wanted to navigate within docs page and for that I did

<a href="#id" >navigate</a>

And it works. But when I do the same i.e.

<a href="#about" >About</a>

for Home page it changes the url to http://localhost:3000/#about but didnot naviagte to about section.

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

0

Use the id, 'about' inside the header or any tag which you want to navigate. Eg:

 <section id='about'></section>
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!