Javascript – Route protecting of a Login page in a React app
I'm trying to protect routes in my React app. The Home page is being protected, but I also want to stop the user to go back to the login page if the isLoggedIn is true, and if it is false…