Changes the current location.
Note: This API is mostly useful in React.Component subclasses that are not able to use hooks. In functional components, we recommend you use the useNavigate hook instead.
useNavigate
https://reactrouter.com/components/navigate
Changes the current location.
Note: This API is mostly useful in React.Component subclasses that are not able to use hooks. In functional components, we recommend you use the
useNavigatehook instead.