I have a button as below
<a href="#" className={classes.btnText} onClick={showDetail}>Learn more <span> → </span> </a>
and able to get the event object
const showDetail = event => {
console.log("show detail",event);
}
Now i want to pass an argument on button click. can some one please tell me how to pass event plus an parameter on button click like showDetail(event, "test") and i dont want the function to be invoked until the button is clicked