What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-06 21:21:03
uselocation hook
import { useHistory } from "react-router-dom"; function HomeButton() { let history = useHistory(); function handleClick() { history.push("/home"); } return ( <button type="button" onClick={handleClick}&g... Add solution