import { useHistory } from "react-router-dom"; // DEPRECATED // It is now import { useNavigate } from "react-router-dom"; // As at March 3, 2022