Reactjs – how to know what the previous page is in react?
const navigate = useNavigate(); navigate(-1) This is what I am trying to do. However, I want to know what the previous page is before going back. If the previous page is some other site, then of course, it should have…