Onclick Funkcja połączenia React
<button onClick={sayHello}>
Click me!
</button>
Victor Saisse
<button onClick={sayHello}>
Click me!
</button>
Try this:
<button onClick={(e) => clickMe(e, someParameter)}>Click Me!</button>
And in your function:
function clickMe(event, someParameter){
//do with event
}