Hi, I have user story #14 left to pass for the JS Calculator which is:
User Story #14: Pressing an operator immediately following =
should start a new calculation that operates on the result of the previous evaluation.
I thought it would be as simple as updating the state in my handleEquals() method to change the input to the result once I pressed the equals button but this doesn’t seem to be working and the test seems to be giving me a script error. I suspect it may be something to do with the way React updates state asynchronously. Please can you help solve this task. TIA.