useForm()
import { useForm } from 'react-final-form'
() => FormApi
The useForm()
hook plucks the FormApi
out of the React context for you. It will throw an exception if you try to use it outside of a <Form/>
component.
useForm()
is used internally inside useField()
, <Field/>
, and <FormSpy/>
.