Experiment of the new React Context API for better component management with user authentication and persisting authentication state throughout the app
Live demo: https://codesandbox.io/embed/jv659x8q23
You can append "/profile" or "/public" at the end of the url in the simulator browser to go to these two pages. You will be prompted to log in if you go the profile page. Use below test account to log in:
username: [email protected] password: chicken
You can always run this little app on your local machine.
After git clone, do
npm install
or yarn install
(if you have yarn installed)
To start the app, run
npm start
or yarn start