React Hook Form error message component
npm install react-hook-form-errorPerformant, flexible and extensible forms with easy to use validation.



 
$ npm install react-hook-form-error
``jsx
import React from 'react';
import useForm from 'react-hook-form';
import { RHFError } from 'react-hook-form-error';
function App() {
const { handleSubmit, register, errors } = useForm();
return (
API
| Prop | Type | Required | Default | Description |
| :--------- | :-------- | :------: | :-----: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
name | string | ✓ | | Unique name to register the custom input |
| errors | Object | ✓ | | (optional when using errors) React Hook Form errors |
| as | Component | | | Component reference eg: |
| messages` | Object | | | keys of error type's message |Thank goes to all our backers! [Become a backer].
Thanks goes to these wonderful people. [Become a contributor].