Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react first click not working

//be carefull you are not overlapping your functions

// do this
const action = () => {
 // some code action 1
  //some other code action 2
}
<button onClick={action}</button>
//instead of this 
<button onClick={() => {function1()
function2()}></button>
 
PREVIOUS NEXT
Tagged: #react #click #working
ADD COMMENT
Topic
Name
7+6 =