I have finished my code for the calculator using React but i get a strange bug, can someone help me debug it? Follow the steps:
- Press 0
- Press either * or +
the code doesnt add them but adds all the others like - % . / i dont understand why it happens only for the above 2 buttons
https://codepen.io/pabba-saiharsha/full/wvMOoBE