Programmatically navigate using react router

Posted by Prem Tiwari | Updated on | Reactjs

Programmatically navigate using react router. There is a new useHistory hook in React Router >5.1.0 if you are using React >16.8.0 and functional components.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers