Associate a listener with a reference
Last updated 2 years ago
import { useListener } from "@atomico/hooks/use-listener";
useListener( ref: Ref<Element>, name: string, handler: (event)=>void, option?: boolean | AddEventListenerOptions );