# useRef

**Kind:** Function

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

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

## Signature

```ts
function useRef(initialValue: T | null): RefObject<T | null | undefined>
```

## Parameters

| Name | Type |
|---|---|
| `initialValue` | `T | null` |

**Returns:** `RefObject<T | null | undefined>`
