Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

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

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
function useCallback
import { useCallback } from "https://deno.land/x/netzo@0.4.40/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