This is a small counter example with React. This app includes a simple component and a stateful component. This project was bootstrapped with Create React App. Before start:
You’ll need to have Node >= 14 on your local development machine. Install the latest or LTS version of Node.js
If using nvm:
nvm install lts
nvm use lts
Check versions with node -v
git clone https://github.com/hduru/counter_example.git
cd counter_example
npm install
npm start
Then open http://localhost:3000/ to see counter example.
- Component (Lifecycle)
- Props (PropTypes, DefaultProps)
- State (useState, useEffect, PreviousState)
Note : Review your Javascript knowledge