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

Documentation (🚧 WIP)

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

useForm

parameters

name

validators

submit

See: submit

onNotify

See: onNotify

return

name

fields

handleChange

handleSubmit

loading

inputs

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