how to return div from button onclick function react code example
Example: 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
}