React Final Form
DocsGithub
Getting Started
Philosophy
Examples
Simple
Record-Level Validation
Field-Level Validation
Submission Errors
🔥High Performance with Subscriptions🔥
Wizard Form
More...
API
<Form/>
<Field/>
<FormSpy/>
useField()
useForm()
useFormState()
Types
FormProps
FormRenderProps
FieldProps
FieldRenderProps
FormSpyProps
FormSpyRenderProps
Migration Guide
from Redux Form
from Formik
FAQ
Getting Started
Philosophy
Examples
Simple
Record-Level Validation
Field-Level Validation
Submission Errors
🔥High Performance with Subscriptions🔥
Wizard Form
More...
API
<Form/>
<Field/>
<FormSpy/>
useField()
useForm()
useFormState()
Types
FormProps
FormRenderProps
FieldProps
FieldRenderProps
FormSpyProps
FormSpyRenderProps
Migration Guide
from Redux Form
from Formik
FAQ
API

useFormState()

Edit

useFormState

import { useFormState } from 'react-final-form'

The useFormState() hook takes one optional parameter, which matches the exact shape of FormSpyProps (except without the render props). It returns a FormState.

useFormState() is used internally inside <FormSpy/>.

Docs

Getting StartedAPIFinal Form

Need Help?

Ask on DiscordStack OverflowSubmit an issue

Social

Follow @finalformjsFollow @erikrasStar react-final-form on Github