Skip to content

composeRef

reference
1 min readUpdated

Kind: Function

Source: src/jsx/dom/intrinsic-element/components.ts

Part of: Jsx

Signature

ts
function composeRef(ref: RefObject<T | null> | Function | undefined, cb: (e: T) => void | (() => void)): ((e: T) => () => void)

Parameters

NameType
ref`RefObject<T
cb`(e: T) => void

Returns: ((e: T) => () => void)

Was this page helpful?

Download as PDF
composeRef — Hono (narrator proof)