function useForm<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta>(opts?): ReactFormExtendedApi<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta>;
function useForm<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta>(opts?): ReactFormExtendedApi<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta>;
Defined in: packages/react-form/src/useForm.tsx:163
A custom React Hook that returns an extended instance of the FormApi class.
This API encapsulates all the necessary functionalities related to the form. It allows you to manage form state, handle submissions, and interact with form fields
TFormData
TOnMount extends FormValidateOrFn<TFormData> | undefined
TOnChange extends FormValidateOrFn<TFormData> | undefined
TOnChangeAsync extends FormAsyncValidateOrFn<TFormData> | undefined
TOnBlur extends FormValidateOrFn<TFormData> | undefined
TOnBlurAsync extends FormAsyncValidateOrFn<TFormData> | undefined
TOnSubmit extends FormValidateOrFn<TFormData> | undefined
TOnSubmitAsync extends FormAsyncValidateOrFn<TFormData> | undefined
TOnDynamic extends FormValidateOrFn<TFormData> | undefined
TOnDynamicAsync extends FormAsyncValidateOrFn<TFormData> | undefined
TOnServer extends FormAsyncValidateOrFn<TFormData> | undefined
TSubmitMeta
FormOptions<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta>
ReactFormExtendedApi<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta>
