shiang / Context_API_Example

Experiment of the new React Context API for better component management with user authentication and persisting authentication state throughout the app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Context_API_Example

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: chicken@chicken.com password: chicken

Installation

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

About

Experiment of the new React Context API for better component management with user authentication and persisting authentication state throughout the app


Languages

Language:JavaScript 83.1%Language:HTML 16.9%