📄️ <Error>
The `` component can be used to display a form error (it requires the context to be set).
📄️ <Form>
The ` component is the alternative way to initialize a @per-form/react form (it uses useForm and ` internally).
📄️ <FormProvider>
The `` component is used to set up the form context.
📄️ <Reset>
The ` component is a shortcut for an ` element.
📄️ <Submit>
The ` component is a shortcut for an ` element.
📄️ Types
IError
📄️ useForm
useForm is the base hook containing all @per-form/react logic.
📄️ useFormContext
useFormContext is for retrieving the form context when the ` or the ` components are set.
📄️ useFormErrors
useFormErrors is a shortcut to only get the errors from the form context.
📄️ useFormStates
useFormStates return the form states as a React state from the form context.
📄️ useFormValid
useFormValid return the form valid React state from the form context.
📄️ useInput
useInput is used to declare a local field.
📄️ useInputs
useInputs is used to declare local fields.
📄️ useSubscribe
Basic subscription you can use to be notified when form state changes.
📄️ useWatch
useWatch returns a React state for the values of the field being watched.