This app is an example used in this article, covering the concept of using hooks to cleanly manage React app state and component lifecycle.
This is a very simple example for using useState and creating custom hooks.
NOTE: This app does not persist data, the data will be reset every time the page is loaded!
This app requires Node.js
This app was created with npx create-react-app
To run this app, first you must install all dependencies npm install
Next enter npm start
in the console.
Then navigate to localhost:3000
in your favorite web browser.
This app probably should not be updated without updating the accompanying article
Feel free to contribute by submitting a PR.
Please leave any feedback in the comments section of the article
I welcome and do my best to address all feedback.