Answers for "pass to another component react and redirect"

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
1

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 "pass to another component react and redirect"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language