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

Commit 458d076

Browse files
committed
update readme
1 parent 6becd00 commit 458d076

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,11 @@ function App() {
4444
return (
4545
<form onSubmit={handleSubmit(e => console.log(e))}>
4646
<HookFormInput
47-
input={Select}
47+
component={<Select options={options} />}
4848
rules={{ required: true }}
4949
name="test1"
5050
register={register}
5151
setValue={setValue}
52-
options={options} // this is React-Select props
5352
/>
5453
<button
5554
type="button"

0 commit comments

Comments
 (0)