useAddEventListner
Subscribes to events of a given element with a ref
Usage
useAddEventListener adds a given event listener to an element to which ref is assigned.
After the component is unmounted, the listener is automatically removed.
Subscribes to events of a given element with a ref
useAddEventListener adds a given event listener to an element to which ref is assigned.
After the component is unmounted, the listener is automatically removed.