useFormState
useFormState
is a custom hook that provides access to the overall form state, such as errors, touched fields, and submission status.
Returns
An object containing the form's state and helpers.
Example
const { errors, isSubmitting } = useFormState();