showing results for - "usenavigate"
Samy
01 Oct 2017
1In react-router-dom version 6 
2useHistory() is replaced by useNavigate() ;
3
4import {useNavigate} from 'react-router-dom';
5const navigate = useNavigate();
6navigate('/home')
7