A simple four-function calculator using React, with keyboard support and some implicit operations similar to the Windows calculator.
- Press the buttons on the page to add, subtract, multiply, or divide non-negative whole numbers (e.g. 15 + 20 =)
- You can also use your keyboard to enter numbers, operators, compute (press equals or enter), or backspace to undo the last number
- Similar to the Windows calculator, if you press the equals button multiple times in a row, the same operation with the second operand will be repeated. If you press an operation without specifying the second operand, the current total will be assumed to be the second operand.
- Create React App - to build the scaffolding
- react-fontawesome - for operator icons
- Enzyme - for automated testing
In the project directory, you can run:
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.