Why using the Controller and FormProvider instead of using the Ref and register? #2679
Unanswered
matheusrocha89
asked this question in
Q&A
Replies: 1 comment
-
same question |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Checking the documentation of
react-hook-form
and the examples here on theshadcn-ui
, the Form component uses theFormProvider
fromreact-hook-form
and the Controlled components example. But most of the components of the Shadcn-ui forward the ref.Was there any reason not to use the examples using the
register
fromreact-hook-form
and choose the controlled components approach?Beta Was this translation helpful? Give feedback.
All reactions