This project was built using This React boilerplate project
Authentication in ReactJS using Context and Hooks.
-
Redux for storing user details.
-
Intercepting axios calls for unauthenticated attempts.
-
Authenticated and unauthenticated routes using react-router.
You can check a live example running here
Just use any username and password.