You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello pals.
I'm using the react-hook-form for my forms and also <DatePicker /> as an input.
There is no problem with submitting. but for passing the value of input, I have to set up a state and pass it or use setValue of react-hook-form which both are kind of pain! if there is a name property for input of <DatePicker /> there is no more need to struggle with states and setValue and blah blah blah...
and I know there are a ton of ways to set the name property like using renderInput prop but I think a single prop will setLife("easier").
thanks in advance.
The text was updated successfully, but these errors were encountered:
Hello pals.
I'm using the react-hook-form for my forms and also
<DatePicker />
as an input.There is no problem with submitting. but for passing the value of
input
, I have to set up a state and pass it or usesetValue
of react-hook-form which both are kind of pain! if there is aname
property forinput
of<DatePicker />
there is no more need to struggle withstates
andsetValue
and blah blah blah...and I know there are a ton of ways to set the
name
property like usingrenderInput
prop but I think a single prop willsetLife("easier")
.thanks in advance.
The text was updated successfully, but these errors were encountered: