DEV Community

Discussion on: Full-Stack Authentication and Hosting (Nodejs, Reactjs, Heroku, Netlify)

Collapse
 
ebereplenty profile image
NJOKU SAMSON EBERE

If I get your question correctly, then it is handled in dev.to/ebereplenty/react-authentic....

For example, to redirect to a landing page, you can just do the following:

    // redirect user to the landing page
    window.location.href = "/";
Enter fullscreen mode Exit fullscreen mode
Thread Thread
 
ebereplenty profile image
NJOKU SAMSON EBERE

This is the login code. Notice how I redirect to the auth page

github.com/EBEREGIT/react-auth/blo...