Bereaksi Router DOM V6 GOBACK
import { useNavigate } from "react-router-dom";
const navigate = useNavigate();
navigate(-1);
CodePadding
import { useNavigate } from "react-router-dom";
const navigate = useNavigate();
navigate(-1);