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

# Function: useOpenUIState()

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

Core state hook — extracts all form state, action handling, parser
management, and context assembly out of the Renderer component.

Store holds everything: $bindings as top-level keys, form fields nested
under formName as plain values.

## Parameters

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

## Returns

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