Skip to main content

Function: useEventListener

Const useEventListener<K>(eventName, handler, capture?): void

Type parameters

NameType
Kextends keyof DocumentEventMap

Parameters

NameTypeDefault value
eventNameKundefined
handler(e: DocumentEventMap[K]) => voidundefined
capturebooleanfalse

Returns

void

Defined in

onekijs/packages/onekijs-framework/src/core/useEventListener.ts:3