Retrieves the current route.
Renders the component again whenever the route changes, whether through navigation or browser history.
The current route, as carried by the location path; an empty string outside any router
Retrieves the current route.
Renders the component again whenever the route changes, whether through navigation or browser history.