use-router
Hooks to work with routes in the browser
Hook to handle routes based on expressions according to the https://github.com/uppercod/exp-route library, this hook is used by @atomico/components/router****
Module
useRouter syntax
Where:
view
: return of the last function executed according to the route match.path
: string, represents the prop of the last path that consists of the path match.params
: parameters captured according to the pathsearch
: parameters captured from the path
useRoute syntax
Share the return from useRouter
useRouteMatch syntax
Last updated