Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

React-Hook-Form Property in Form.Input #566

Open
mdestafadilah opened this issue Apr 8, 2021 · 0 comments
Open

React-Hook-Form Property in Form.Input #566

mdestafadilah opened this issue Apr 8, 2021 · 0 comments

Comments

@mdestafadilah
Copy link

Hi, I Just follow in Login.Page but i'm not using Formik, i'm using react-hook-form, i'm trying testing with

<Form.Input name="randomText" placeholder="randomText" />

reproduce

 <input className="form-control" type="text" name="randomText" placeholder="Kode Unik"  />

but in react-hook-form we must register every input with ref tag with {...register("test")}

if i'm using

 <input className="form-control" type="text" name="randomText" placeholder="Kode Unik"  `{...register("randomText")}` />

it's woking, can somebody give some trick? or i just use reactstrap ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant