Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
function useImperativeHandle
import { useImperativeHandle } from "https://deno.land/x/fathym_atomic_design_kit@v0.0.106/src/src.deps.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 ===).