GithubHelp home page GithubHelp logo

niinpatel / calculator-react Goto Github PK

View Code? Open in Web Editor NEW
60.0 60.0 87.0 924 KB

A simple arithmetic Calculator built with ReactJS.

Home Page: https://calculator-n.herokuapp.com/

HTML 14.52% CSS 3.25% JavaScript 82.23%

calculator-react's People

Contributors

niinpatel avatar npelkone avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

calculator-react's Issues

errors

I'm getting a this.reset is not a function and eval can be harmful error when I rewrite your code. Can you fix it.

I would like to add some good practice

I see there is some small structuring problem in your code. like extra white space, too many if else(not a good practice). I can fix these issues for you. Should I do it?

Two minuses in a row result to an error

If you put two minuses in a row you'll get an error.

For example: 1--1 should be 2. Instead the result is an error.

1-(-1) results to 2 instead, so that is working as expected.

I consider this a bug, because you shouldn't rely on user going through the trouble of always placing the parentheses. Also, I think it's very common for calculators to handle two minuses in a row.

npm install makes folder 200 mb of size

I cloned the repo and got 1 mb of size. After npm install I got 200 mb. Is this the wanted behaviour or should I investigate further because of a bug? Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.