Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/netzo/deps/preact/hooks.ts>useImperativeHandle

Deno-powered framework for building business web apps
Go to Latest
function useImperativeHandle
import { useImperativeHandle } from "https://deno.land/x/netzo@0.3.91/deps/preact/hooks.ts";

Type Parameters

T
R extends T

Parameters

ref: PreactRef<T>

The ref that will be mutated

create: () => R

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

optional
inputs: Inputs

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