useError
This hook allows you to pass a fieldId
and will return the error for this field.
example:
const NameError = () => {
const err = useError('name');
return err ? `You have errored: ${err}` : null;
}
This hook allows you to pass a fieldId
and will return the error for this field.
example:
const NameError = () => {
const err = useError('name');
return err ? `You have errored: ${err}` : null;
}