hook-form-async-validator

async-validator for react-hook-form

Usage no npm install needed!

<script type="module">
  import hookFormAsyncValidator from 'https://cdn.skypack.dev/hook-form-async-validator';
</script>

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',
        },
      }),
  });