usehistory is not exported form react router dom

Solutions on MaxInterview for usehistory is not exported form react router dom by the best coders in the world

showing results for - "usehistory is not exported form react router dom"
Egon
27 Sep 2020
1In react-router-dom version 6 
2useHistory() is replaced by useNavigate() ;
3
4import {useNavigate} from 'react-router-dom';
5const navigate = useNavigate();
6navigate('/home')
7
queries leading to this page
usehistory is not exported form react router domattempted import error 3a 27history 27 is not exported from 27react router 27 usenavigate propertiesuseroutematch is not exported from react router domimport error 3a 27usehistory 27 is not exported from 27react router dom 27 hook usenavigateusenavigate 28 29 reactattempted import error 3a 27usehistory 27 is not exported from 27react router 27 react usenavigate exampleusehattempted import error 3a 27usehistory 27 is not exported from 27react router dom 27 react usenavigatereact router dom usehistory is not exportedimport error 3a 27usehistory 27 is not exported from 27react router dom 27 iin 4 3 0access usenavigatereactjs usenavigateattempted import error 3a 27routers 27 is not exported from 27react router dom 27 react router dom usehistory is not exported from 27react router dom 27react 22usenavigate 22react router has not exported browserhistoryimport error 27usehistory 27 is not exported from 27react router 27attempted import error 3a 27usehistory 27 is not exported from 27react router dom 27attempted import error 3a 27usehistory 27 is not exported from 27react router dom 27 import error 3a 27usehistory 27 is not exported from 27react router dom 27import error 27usehistory 27 is not exported from 27react router dom 27usenavigate in reactusehistory is not exported from react router domreact router dom usehistory not exportedusenavigate hookusenavigate 28 29usenavigate reactusehistory is not exported form react router dom