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