# useImperativeHandle

**Kind:** Function

**Source:** [`src/jsx/hooks/index.ts`](https://github.com/honojs/hono/blob/main/src/jsx/hooks/index.ts#L388)

**Part of:** [Jsx](subsystem-src-jsx)

## Signature

```ts
function useImperativeHandle(ref: RefObject<T | null>, createHandle: () => T, deps: readonly unknown[]): void
```

## Parameters

| Name | Type |
|---|---|
| `ref` | `RefObject<T | null>` |
| `createHandle` | `() => T` |
| `deps` | `readonly unknown[]` |

**Returns:** `void`
