blade-sensei / learning

Roadmap for software engineer, sandbox, algorithms training, it also contains my daily task dashboard
9 stars 2 forks source link

calculator #9

Closed blade-sensei closed 4 years ago

blade-sensei commented 4 years ago

basic 4 operations +/- handle decimals

blade-sensei commented 4 years ago

problems during dev: #53 #58 #57 #55

blade-sensei commented 4 years ago

Shoud we set userInput state and THEN handle it with callback OR should be first handle it and THEN at the end of the focus setState the userInput

We need to test the FIRST.

So State Will be:

'expression' = '0' then user inputs a button '3' type number or 'x' type operator 'now we get expression = '0' and input = { '3', type } THEN after input setState we should handle input to create a new expression or NOT. ??

blade-sensei commented 4 years ago

https://github.com/blade-sensei/react-calculator

blade-sensei commented 4 years ago

finished calculator url: https://calculator-1000.firebaseapp.com/