Don't count your fingers, use this calculator instead :)
Live demo here: ➡️ React Calculator
I used useReducer, useEffect hooks in this project. Implemented CSS grid system. You can chain multiple calculations like: 30 + 12 * 3 - 1, also It's working with decimal points. There is functionality to use it with a keyboard or mouse (in mobile touching).
I ported my own vanilla JS version to React. If you want to see vanilla JS version of this project, click here
| Command | Action |
|---|---|
git clone https://github.com/ozhasta/react-calculator.git |
Clone the repo |
cd react-calculator |
Change directory to root of project |
npm install |
Install dependencies |
npm start |
Start local development server |
npm build |
Build your production site to ./dist/ |
