Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
function useCallback
import { useCallback } from "https://deno.land/x/fathym_atomic_design_kit@v0.0.119/src/src.deps.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