REACH ROUTER 6 Navegue

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

function App(){

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