Skip to content

react-hook-form 7.21.0

[7.21.0] - 2021-12-06

Changed

  • shouldUseNativeValidation will pass down validation props both at client and server render
const { register } = useForm()

<input {...register('name', { required: true })} />

<input name="name" required /> // both client and server render