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

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

useForm

parameters

name

initialState

validators

onSubmit

onNotify

return

name

fields

handleChange

handleSubmit

loading

inputs

FormProvider

props

children

initialStates

validators

onSubmit

onNotify

({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.