Calling a JSX event handler explicitly
How can I call an event handler explicitly?
It gives the compilation error:
Is it safe to simply check if it is a function, or not that simple?
Thanks
It gives the compilation error:
This expression is not callable.
Not all constituents of type 'FocusEventHandlerUnion<HTMLInputElement, FocusEvent>' are callable.
Type 'BoundEventHandler<HTMLInputElement, FocusEvent, FocusEventHandler<HTMLInputElement, FocusEvent>>' has no call signatures.
Is it safe to simply check if it is a function, or not that simple?
Thanks
