useFormField
useFormField
is a custom hook that provides access to the current form field's context, such as value, error, and helper methods.
Returns
An object containing the current field's state and helpers.
Example
const { value, error, setValue } = useFormField();