useEventListener

fun <E : Event> useEventListener(target: EventTarget?, type: EventType<E>, options: AddEventListenerOptions? = undefined, handler: (E) -> Unit)(source)

Original