hook-form-async-validator
v0.0.4
Published
async-validator for react-hook-form
Downloads
6
Readme
hook-form-async-validator
async-validator for react-hook-form
Usage
yarn add hook-form-async-validator
import resolver from 'hook-form-async-validator';
// ...
const form = useForm({
resolver: resolver({
username: {
required: true,
message: 'please input you name',
},
}),
});