> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# Function: useCallback()

> **useCallback**\<`T` _extends_ `Function`>(`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

| Type Parameter           |
| ------------------------ |
| `T` _extends_ `Function` |

## Parameters

| Parameter  | Type             |
| ---------- | ---------------- |
| `callback` | `T`              |
| `deps`     | `DependencyList` |

## Returns

`T`

## Version

16.8.0

## See

[https://react.dev/reference/react/useCallback](https://react.dev/reference/react/useCallback)
