Function: useCallback()
useCallback<
TextendsFunction>(callback:T,deps:DependencyList):T
useCallback will return a memoized version of the callback that only changes if one of the inputs
has changed.
Type Parameters
Parameters
Returns
T
Version
16.8.0