# useEffect

**Kind:** Function

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

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

## Signature

```ts
function useEffect(effect: () => void | (() => void), deps: readonly unknown[]): void
```

## Parameters

| Name | Type |
|---|---|
| `effect` | `() => void | (() => void)` |
| `deps` | `readonly unknown[]` |

**Returns:** `void`
