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

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

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

Returns a memoized version of the callback that only changes if one of the inputs has changed (using ===).

Type Parameters

T extends Function

Parameters

callback: T
inputs: Inputs