React router – useHistory / useNavigate vs window.history.back() – React native
I have a navigate back button and while checking for returning back I found two ways: The native way: window.history.back() or window.history.go(-1) The react router way: export const BackButton: FC = () => { const navigate = useNavigate(); return (…