Skip to content
This repository was archived by the owner on Jan 14, 2021. It is now read-only.

Commit 0496a15

Browse files
committed
update readme
1 parent ed40c8a commit 0496a15

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,19 @@ function App() {
4848
const { handleSubmit, register, setValue, reset } = useForm();
4949

5050
return (
51-
<form onSubmit={handleSubmit(e => console.log(e))}>
51+
<form onSubmit={handleSubmit(data => console.log(data))}>
5252
<HookFormInput
5353
component={<Select options={options} />}
5454
rules={{ required: true }}
55-
name="test1"
55+
name="reactSelect"
5656
register={register}
5757
setValue={setValue}
5858
/>
5959
<button
6060
type="button"
6161
onClick={() => {
6262
reset({
63-
test: '',
63+
reactSelect: '',
6464
});
6565
}}
6666
>

0 commit comments

Comments
 (0)