React Router 6 Navigasi

import { useNavigate } from "react-router-dom"; // v6

function App(){

  ...
  const navigate = useNavigate();
  ...
  navigate("/app");  
  ...  
}
KostasX