Answers for "react router dom cant find usehistory"

8

usehistory not found in react-router-dom

import { useNavigate } from 'react-router-dom';
const navigate = useNavigate();
navigate('/home');
Posted by: Guest on December-02-2021

Code answers related to "react router dom cant find usehistory"

Code answers related to "Javascript"

Browse Popular Code Answers by Language