API

The following are exported by the Final Form package.

createForm

(config: Config) => FormApi
import { createForm } from 'final-form'

Creates a form instance. It takes a Config and returns a FormApi.

fieldSubscriptionItems

 string[]
import { fieldSubscriptionItems } from 'final-form'

An à la carte list of all the possible things you can subscribe to for a field. Useful for subscribing to everything.

formSubscriptionItems

 string[]
import { formSubscriptionItems } from 'final-form'

An à la carte list of all the possible things you can subscribe to for a form. Useful for subscribing to everything.

ARRAY_ERROR

string
import { ARRAY_ERROR } from 'final-form'

A special string key used to return an error for an array of fields.

FORM_ERROR

string
import { FORM_ERROR } from 'final-form'

A special string key used to return a whole-form error inside error objects returned from validation or submission.