We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81b0492 commit f3a6267Copy full SHA for f3a6267
1 file changed
README.md
@@ -36,7 +36,7 @@ import { useForm } from 'react-hook-form';
36
import { ErrorMessage } from '@hookform/error-message';
37
38
export default function App() {
39
- const { register, errors, handleSubmit } = useForm();
+ const { register, formState: { errors }, handleSubmit } = useForm();
40
const onSubmit = (data) => console.log(data);
41
42
return (
@@ -72,7 +72,7 @@ import { useForm } from 'react-hook-form';
72
73
74
75
- const { register, errors, handleSubmit } = useForm({
+ const { register, formState: { errors }, handleSubmit } = useForm({
76
criteriaMode: 'all',
77
});
78
0 commit comments