reaja primeiro clique não funcionando

//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>
Johiny