useForm()
This hook creates Form and returns it. It does not change during the component's lifecycle.
Import
import { useForm } from 'exeform';Types
Values = {
[key: string]: any
}
Errors = {
[path: string]: string
}
Validate(values: Values): Errors
Options = {
initialValues: Values
validate?: Validate
}
useForm(options: Options): FormExample
For more information about the validation, see here.
Last updated
Was this helpful?