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;
Returns a memoized version of the callback that only changes if one of the inputs
has changed (using ===).