Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zhangyu1818/hook-form-async-validator

react-hook-form validation resolver
https://github.com/zhangyu1818/hook-form-async-validator

Last synced: about 1 month ago
JSON representation

react-hook-form validation resolver

Awesome Lists containing this project

README

        

# hook-form-async-validator

async-validator for react-hook-form

# Usage

```sh
yarn add hook-form-async-validator
```

```js
import resolver from 'hook-form-async-validator';

// ...
const form = useForm({
resolver: resolver({
username: {
required: true,
message: 'please input you name',
},
}),
});
```