File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ import { useForm } from 'react-hook-form';
3636import { ErrorMessage } from ' @hookform/error-message' ;
3737
3838export default function App () {
39- const { register , errors , handleSubmit } = useForm ();
39+ const { register , formState : { errors } , handleSubmit } = useForm ();
4040 const onSubmit = (data ) => console .log (data);
4141
4242 return (
@@ -72,7 +72,7 @@ import { useForm } from 'react-hook-form';
7272import { ErrorMessage } from ' @hookform/error-message' ;
7373
7474export default function App () {
75- const { register , errors , handleSubmit } = useForm ({
75+ const { register , formState : { errors } , handleSubmit } = useForm ({
7676 criteriaMode: ' all' ,
7777 });
7878 const onSubmit = (data ) => console .log (data);
You can’t perform that action at this time.
0 commit comments