Skip to main content

Function: useFormState

Const useFormState<VS, SD, ES, WS>(values, options): FormState<VS, SD, ES, WS>

Type parameters#

NameTypeDescription
VSVSType of form value state.
SDunknownType of submit handler result.
ESundefinedType of form error state.
WSundefinedType of form warning state.

Parameters#

NameType
valuesVS
optionsFormOptions<VS, SD, ES, WS>

Returns#

FormState<VS, SD, ES, WS>