value vs attribute #2620
-
I posted this on Spectrum before I found out about GitHub Discussions... Spent a good four hours before I got clued in. I don't know the Problem The issue is The tests pass when using Formik because This works with Formik:
But fails with RHF. To fix it we have to check for
When you do a screen.debug(password), there is no This is a pretty big surprise for those moving from Formik to RHF. I think it is worth documenting
My two cents. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
For testing take a look at this section: For the difference, one is Controlled form, RHF is uncontrolled. let me know if you need more explanation. more difference: https://react-hook-form.com/faqs#ReactHookFormFormikorReduxForm |
Beta Was this translation helpful? Give feedback.
For testing take a look at this section:
https://react-hook-form.com/advanced-usage#TestingForm
https://react-hook-form.com/faqs#TestingReactHookForm
For the difference, one is Controlled form, RHF is uncontrolled.
let me know if you need more explanation.
more difference: https://react-hook-form.com/faqs#ReactHookFormFormikorReduxForm