useCallback

Returns a memoized version of a callback function.