Closed blade-sensei closed 4 years ago
problems during dev: #53 #58 #57 #55
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. ??
finished calculator url: https://calculator-1000.firebaseapp.com/
basic 4 operations +/- handle decimals