Answers for "react redirect to another page with data"

1

how to send data between components in react with redirect

<Redirect
  to={{
    pathname: "/page",
    state: data // your data array of objects
  }}
>
Posted by: Guest on September-07-2021
0

function that redirects to another page react

const navigate = useNavigate();
const goToLoginPage = () => navigate('/login');
Posted by: Guest on October-09-2021

Code answers related to "react redirect to another page with data"

Code answers related to "Javascript"

Browse Popular Code Answers by Language