const { path, url } = useRouteMatch()
What's the difference between these two destructured properties returned from the hook? I log them but they seem same.
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();