https://github.com/zhangyu1818/hook-form-async-validator
react-hook-form validation resolver
https://github.com/zhangyu1818/hook-form-async-validator
Last synced: 3 months ago
JSON representation
react-hook-form validation resolver
- Host: GitHub
- URL: https://github.com/zhangyu1818/hook-form-async-validator
- Owner: zhangyu1818
- Created: 2020-09-27T06:41:13.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-30T02:05:19.000Z (about 4 years ago)
- Last Synced: 2025-03-03T21:56:06.151Z (4 months ago)
- Language: TypeScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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',
},
}),
});
```