useNavigate

The useNavigate hook imperatively navigates between routes.