Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

form needs 2 clicks to submit react

You might not actually have a problem:
State setting in React is asynchronous, so you can't console.log it on the next line and expect it to be updated. 
– Jayce444 (Stack Overflow)


 
PREVIOUS NEXT
Tagged: #form #clicks #submit #react
ADD COMMENT
Topic
Name
9+3 =