Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 867 Bytes

README.md

File metadata and controls

44 lines (33 loc) · 867 Bytes

TDD React

This builds a simple Calculator app based on the original https://github.com/calebpollman/react-calculator. Results can be found here: https://egraumann.github.io/react-calculator/

Changes to the original

  • layout (colors, round corners, different division sign)
  • works with float
  • displays 0.5 instead of .5

ToDo:

  • when typing in number and adding operator, I would like to keep the number in the display instead of resetting it to 0
  • adding more operators (-/+, root, etc)
  • (optional) when dividing by zero, it does nothing. Maybe show "error" or something like this?

Local Setup

$ git clone [email protected]:egraumann/react-calculator.git
$ cd react-calculator
$ npm install

Run Locally

$ npm start

Run Tests

$ npm test

Deploy to Github page

$ npm run deploy