This repository has been archived by the owner on Nov 25, 2022. It is now read-only.
useChangeRoute
DanilAndreev edited this page Jul 6, 2020
·
3 revisions
useChangeRoute()
- is a ReactJS hook, used to get changeRoute()
, getRouteParams()
, homePath
from every component.
Hook should be used in components, which stand after <ChangeRouteProvider />
- changeRoute
- getRouteParams
- getQueryParams
- homePath
Fro more information about ReactJS hooks see react hooks
function MyComponent() {
const {changeRoute, getRouteParams, homePath} = useChangeRoute();
return(
...
);
}