tabler-react icon indicating copy to clipboard operation
tabler-react copied to clipboard

React-Hook-Form Property in Form.Input

Open mdestafadilah opened this issue 4 years ago • 0 comments

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 ?

mdestafadilah avatar Apr 08 '21 06:04 mdestafadilah