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

172
Views
What's the difference between path and url in react-router
const { path, url } = useRouteMatch()

What's the difference between these two destructured properties returned from the hook? I log them but they seem same.

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

0

While surfing through the source code of react-router, I found this:
// The path lets us build paths that are
// relative to the parent route, while the url lets
// us build relative links.

let { path, url } = useRouteMatch();

read useRouteMatch() source code on github

useRouteMatch() example

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!