useNavigate returns a navigate function. You call that function with a path or history delta to move the user to another location.