reactjs – React button needs to be clicked twice to run the onClick event
I have a form I am using to allow users to add comments to my site. The form has an input field, a textarea field, and a button. I am saving both fields in two different state variables using the Onchange prop on the input field, and textarea. When the button is clicked it runs … Read more