add string to parameter when parameter type is event react code example
Example 1: how to pass a value to a react funtion without immediately firing it
<button onClick={(e) => {
this.clickMe(e, someParameter)
}}>Click Me!</button>
Example 2: get syntethicbaseevent and parameter in react
Try this:
<button onClick={(e) => clickMe(e, someParameter)}>Click Me!</button>
And in your function:
function clickMe(event, someParameter){
//do with event
}