Using React Hooks to manage State in Function Components
Explained in my article on managing state with react hooks
Showcases statefulness in function components in 3 ways:
useState
useReducer
This project was bootstrapped with Create React App.
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.