hooks-state-playground

Using React Hooks to manage State in Function Components

Stars
0

Project's Purpose

Explained in my article on managing state with react hooks

Showcases statefulness in function components in 3 ways:

  1. Using useState
  2. Using useReducer
  3. Global/Shared state using React's Context API and hooks

This project was bootstrapped with Create React App.

Starting the Demo Application

In the project directory, you can run:

npm start

Runs the app in the development mode. Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits. You will also see any lint errors in the console.