Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

equivalent of useHistory in react

import { useHistory } from "react-router-dom"; // DEPRECATED
// It is now
import { useNavigate } from "react-router-dom"; // As at March 3, 2022
 
PREVIOUS NEXT
Tagged: #equivalent #useHistory #react
ADD COMMENT
Topic
Name
8+9 =