Lynx

genui / openui / useStateField

useStateField()

function useStateField<T>(name: string, value?: T): ACTION_STEPS<ACTION_STEPS<T>>

Resolve a named OpenUI state field against form state and reactive bindings.

Type Parameters

Type ParameterDefault type
Tunknown

Parameters

ParameterType
namestring
value?T

Returns

ACTION_STEPS<ACTION_STEPS<T>>

Defined in

@lynx-js/genui/openui/src/core/hooks/useStateField.ts:12

Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.