-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add example for controlled components #6519
Conversation
the alternative for custom input fields when useRegister can't be used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@m-raschle thanks this is awesome! Went through it and made a few suggestions. Let me know if anything's unclear. The code worked great, just tweaked things for readability and sometimes just for personal preference. But otherwise looks good
Co-authored-by: Dominic Saadi <dominiceliassaadi@gmail.com>
only import type to make clear that all you need is the type Co-authored-by: Dominic Saadi <dominiceliassaadi@gmail.com>
Co-authored-by: Dominic Saadi <dominiceliassaadi@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @m-raschle! This is a great addition, let's get it merged.
* add example for controlled components the alternative for custom input fields when useRegister can't be used. * readability change Co-authored-by: Dominic Saadi <dominiceliassaadi@gmail.com> * change props import only import type to make clear that all you need is the type Co-authored-by: Dominic Saadi <dominiceliassaadi@gmail.com> * remove last line Co-authored-by: Dominic Saadi <dominiceliassaadi@gmail.com> * pluralize props * add a title * change hyperlink * Update docs/docs/forms.md Co-authored-by: Dominic Saadi <dominiceliassaadi@gmail.com>
* add example for controlled components the alternative for custom input fields when useRegister can't be used. * readability change Co-authored-by: Dominic Saadi <dominiceliassaadi@gmail.com> * change props import only import type to make clear that all you need is the type Co-authored-by: Dominic Saadi <dominiceliassaadi@gmail.com> * remove last line Co-authored-by: Dominic Saadi <dominiceliassaadi@gmail.com> * pluralize props * add a title * change hyperlink * Update docs/docs/forms.md Co-authored-by: Dominic Saadi <dominiceliassaadi@gmail.com>
the alternative for custom input fields when useRegister can't be used.