Type for two-element array event handlers
Hi,
is there a defined type for two-element array event handlers e.g.
onClick={[callback, arg]}
.
An example code:
?
I tried
but it does not accept the callback.
I also tried
but that does not match the JSX onClick type.1 Reply
That works. Thank you very much.
Even better, I see that there is EventHandlerUnion which allows you to manage both ways of passing a callback.