Skip to content
Balázs Orbán edited this page Aug 8, 2019 · 13 revisions

Documentation (🚧 WIP)

This is the documentation of another-use-form-hook v3.

FormProvider

props

children

initialState

validators

submit

({name: string, fields: FormFields, notify: NotifyCallback, setLoading: LoadingCallback }) => void

This is the function that gets executed when you call handleSubmit. You can define it either globally as a prop of FormProvider, or provide it as a parameter of (useForm)[#useForm].

onNotify

useForm

parameters

name

validators

submit

See: submit

onNotify

See: onNotify