Question:I have create two states for my input elements and used onChange to manipulate their state. Why do I get this error even when I have declared the variables in a destructured array? Can someone explain to me what I am doing wrong please
setAmountare not declared. You can either use
letto declare them.
If you have better answer, please add a comment about this, thank you!