Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
function useCallback
import { useCallback } from "https://deno.land/x/netzo@0.3.66/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