React Router Dom 6 Wróć
import { useNavigate } from "react-router-dom";
const navigate = useNavigate();
navigate(-1);
CodePadding
import { useNavigate } from "react-router-dom";
const navigate = useNavigate();
navigate(-1);