I am making a calcultor using React Hooks. I wan to apply a condition in my code to check and be sure that you can not have multiple "." in your number and that you do not have series of zeroes to start your number.
how can I do that?
I tried below code to apply this condition but having an error [object object]
I am making a calcultor using React Hooks. I wan to apply a condition in my code to check and be sure that you can not have multiple "." in your number and that you do not have series of zeroes to start your number.
how can I do that?
I tried below code to apply this condition but having an error [object object]
this is my contextprovider.js code
my Keypad.js code, from where i need to get the value.
computation.js file, where value will be displayed.