# Function useCallback

- useCallback<T>(callback, deps): T

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

  #### Type Parameters

  - T extends Function

  #### Parameters

  - callback: T
  - deps: DependencyList

  #### Returns T

  #### Version

  16.8.0

  #### See

  https://react.dev/reference/react/useCallback

  - Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2055