Calculator with a pokedex style, built with React. I use the Hooks API for practice, such as: useState, useEffect and useContext.
Here is a working live Demo.
git clone https://github.com/gmsanchezgaray/react-calculator.git
cd react-calculator
npm start
๐ธ User can click a '+/-' button to change the sign of the number that is currently displayed.
๐ธ The Calculator doesn't use the eval()
function to execute calculations
๐น User can see a display showing the current number entered or the result of the last operation.
๐น User can see an entry pad containing buttons for the digits 0-9, operations '+', '-', '*', '/', and '=', a '<' button (for delete the last number), and an 'C' button (for clear all).
๐น User can enter numbers as sequences up to 8 digits long by clicking on digits in the entry pad. Entry of any digits more than 8 will be ignored.
๐น User can see 'ERR' displayed if any operation would exceed the 8 digit maximum.
๐น The user can click the 'C' button to erase the last number or undo a mistake.
.
โโโ public
โโโ src
| โโโ assets
| โโโ context
| โโโ font
| โโโ Pokedex
| | โโโ Flex
| | โโโ LeftPart
| | โโโ RightPart
| โโโ [...]
โโโ README.md
โโโ package-lock.json
โโโ package.json
โโโ yarn.lock