Skip to content

leadq/react-protected-route

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000. After app runs, you can click buttons to switch authentication on/off. You cant go ProtectedPage ("/protected") unless localStorage has "token" key. Also you cant go LoginPage("/login") if you are authenticated. You are free to go NormalPage ("/normal")

About

Basic implementation of react route and protected-route looks authentication

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published