You can access the history object in a functional component by calling the useHistory hook: const history = useHistory().
Question 2 of 20 in useHistory Quiz