'First time form submission but from second time tis messing up, react
I am able to submit data for the first time only , from second time its not submitting properly. https://codesandbox.io/s/form-submission-p1g0k8?file=/src/components/form.js
Solution 1:[1]
Form is submitting on every submit click check your console for verification. Actually you are setting innerHTML in DOM on click and mapping the array. So you are changing array on handleChange i.e., on every value change so its pretending that submit button is not working but its working fine.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Asad Haroon |
