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

# Function: useOpenUIState()

> **useOpenUIState**(`__namedParameters`: [`UseOpenUIStateOptions`](/next/zh/api/genui/openui/core/interfaces/UseOpenUIStateOptions.md), `renderDeep`: (`value`: `unknown`) => `ReactNode`): [`OpenUIState`](/next/zh/api/genui/openui/core/interfaces/OpenUIState.md)

核心状态 hook——将所有表单状态、action 处理、解析器管理和上下文组装从 Renderer 组件中抽离出来。

Store 保存所有内容：$bindings 作为顶层键，表单字段则以普通值的形式嵌套在 formName 下。

## Parameters

| Parameter           | Type                                                                                          |
| ------------------- | --------------------------------------------------------------------------------------------- |
| `__namedParameters` | [`UseOpenUIStateOptions`](/next/zh/api/genui/openui/core/interfaces/UseOpenUIStateOptions.md) |
| `renderDeep`        | (`value`: `unknown`) => `ReactNode`                                                           |

## Returns

[`OpenUIState`](/next/zh/api/genui/openui/core/interfaces/OpenUIState.md)
