React.RefObject that's been provided to the element you want to bind the listener to.
Name of the event you want listen for.
Optional handler: EventListenerFunction to fire when receiving the event.
Optional options: AddEventListenerOptionsOptions to pass to Event.addEventListener.
Generated using TypeDoc
Attaches an event listener directly to the provided DOM element.
Bypassing React's event system can be desirable, for instance when attaching non-passive event handlers.