Skip to main content

useCallback

function

`useCallback` will return a memoized version of the callback that only changes if one of the `inputs` has changed.

function useCallback<T extends Function>(callback: T, deps: DependencyList): T

Import

import { useCallback } from '@modular/sdk/editor';

Notes

version
16.8.0
see
{@link https://react.dev/reference/react/useCallback}