Function: useFormState
▸ Const useFormState<VS, SD, ES, WS>(values, options): FormState<VS, SD, ES, WS>
Type parameters#
| Name | Type | Description |
|---|---|---|
VS | VS | Type of form value state. |
SD | unknown | Type of submit handler result. |
ES | undefined | Type of form error state. |
WS | undefined | Type of form warning state. |
Parameters#
| Name | Type |
|---|---|
values | VS |
options | FormOptions<VS, SD, ES, WS> |
Returns#
FormState<VS, SD, ES, WS>