Skip to content

Commit 0c7d07e

Browse files
committed
remove unused formState variable in handleSubmit example
1 parent f719ace commit 0c7d07e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/useform/handlesubmit.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ import { useForm } from "react-hook-form";
110110
const sleep = ms => new Promise(resolve => setTimeout(resolve, ms));
111111

112112
function App() {
113-
const { register, handleSubmit, formState: { errors }, formState } = useForm();
113+
const { register, handleSubmit, formState: { errors } } = useForm();
114114
const onSubmit = async data => {
115115
await sleep(2000);
116116
if (data.username === "bill") {

0 commit comments

Comments
 (0)