Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

useCallback

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

function useCallback<T extends Function>(callback: T, inputs: Inputs): T;
§
useCallback<T extends Function>(callback: T, inputs: Inputs): T
[src]

§Type Parameters

§
T extends Function
[src]

§Parameters

§
callback: T
[src]
§
inputs: Inputs
[src]

§Return Type