Skip to content
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

Merged
merged 10 commits into from
Oct 7, 2022
Merged

add example for controlled components #6519

merged 10 commits into from
Oct 7, 2022

Conversation

m-raschle
Copy link
Contributor

the alternative for custom input fields when useRegister can't be used.

the alternative for custom input fields when useRegister can't be used.
Copy link
Contributor

@jtoar jtoar left a 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

docs/docs/forms.md Outdated Show resolved Hide resolved
docs/docs/forms.md Outdated Show resolved Hide resolved
docs/docs/forms.md Outdated Show resolved Hide resolved
docs/docs/forms.md Outdated Show resolved Hide resolved
docs/docs/forms.md Outdated Show resolved Hide resolved
docs/docs/forms.md Outdated Show resolved Hide resolved
docs/docs/forms.md Outdated Show resolved Hide resolved
docs/docs/forms.md Outdated Show resolved Hide resolved
m-raschle and others added 6 commits October 6, 2022 08:41
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>
@m-raschle m-raschle requested a review from jtoar October 6, 2022 07:49
docs/docs/forms.md Outdated Show resolved Hide resolved
Copy link
Contributor

@jtoar jtoar left a 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.

@jtoar jtoar merged commit b7cfa46 into redwoodjs:main Oct 7, 2022
@redwoodjs-bot redwoodjs-bot bot added this to the next-release milestone Oct 7, 2022
github-actions bot pushed a commit that referenced this pull request Oct 7, 2022
* 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>
jtoar added a commit that referenced this pull request Oct 7, 2022
* 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>
@m-raschle m-raschle deleted the patch-1 branch October 12, 2022 07:56
@jtoar jtoar modified the milestones: next-release, v3.3.0 Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:docs This PR only updates docs
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants