useCallback will return a memoized version of the callback that only changes if one of the inputs has changed.
useCallback
inputs
16.8.0
https://reactjs.org/docs/hooks-reference.html#usecallback
useCallback
will return a memoized version of the callback that only changes if one of theinputs
has changed.