Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

useImperativeHandle

function useImperativeHandle<T, R extends T>(
ref: PreactRef<T>,
create: () => R,
inputs?: Inputs,
): void;
§
useImperativeHandle<T, R extends T>(ref: PreactRef<T>, create: () => R, inputs?: Inputs): void
[src]

§Type Parameters

§
R extends T
[src]

§Parameters

§

The ref that will be mutated

§
create: () => R
[src]

The function that will be executed to get the value that will be attached to ref.current

§
inputs?: Inputs optional
[src]

If present, effect will only activate if the values in the list change (using ===).

§Return Type