I'm trying to add dynamic event key to button.
interface ButtonProps{
actionType: string,
actionCb: any
}
const Button = (props: ButtonProps)=>{
return (
<button {props.actionType}={props.actionCB}>
Click me
</button>
)
}
is it possible to do something like this? or is there any other workaround for this? thanks!