Skip to content

evesinger/react-calculator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 83.6%
  • CSS 14.1%
  • HTML 2.3%