Replies: 1 comment
-
As you mentioned, I've utilized two approaches for custom inputs. However, in cases where there are nested components, such as when the parent component contains a form and nested custom input components, I find it more suitable to use I'm interested in hearing your opinion on these approaches. If you have any code samples, I'd appreciate it if you could share them. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
As far as I see it there are two possibilities for custom inputs.
You can use
useForm
and itsdefineField
on the parent to handle the fields and only use a child component for input handling and presentation.Or you can use
useForm
on the parent anduseField
on the child which does the same but you have the form and fields separate.Did I got this right or did a difference elude me there? Which one is preferable? @logaretm
Beta Was this translation helpful? Give feedback.
All reactions