1 min readFeb 11, 2020
There are multiple options how you can redirect, one of the common way — window.location: https://www.w3schools.com/howto/howto_js_redirect_webpage.asp
window.location can also be used to get information about URL: https://www.w3schools.com/js/js_window_location.asp
That would work if you need to redirect outside of your web app (react app), for navigation inside of the application you need to use routing: https://medium.com/the-andela-way/understanding-the-fundamentals-of-routing-in-react-b29f806b157e