# useSyncExternalStore

**Kind:** Function

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

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

## Signature

```ts
function useSyncExternalStore(subscribe: (callback: () => void) => () => void, getSnapshot: () => T, getServerSnapshot: () => T): T
```

## Parameters

| Name | Type |
|---|---|
| `subscribe` | `(callback: () => void) => () => void` |
| `getSnapshot` | `() => T` |
| `getServerSnapshot` | `() => T` |

**Returns:** `T`
