button function with event param code example
Example: how to pass a value to a react funtion without immediately firing it
<button onClick={(e) => {
this.clickMe(e, someParameter)
}}>Click Me!</button>
<button onClick={(e) => {
this.clickMe(e, someParameter)
}}>Click Me!</button>