Replies: 3 comments 3 replies
-
I broadly agree FWIW, and is how I did docs as part of HouseForm (the previous form library I built). |
Beta Was this translation helpful? Give feedback.
0 replies
-
would the following syntax be an option?
|
Beta Was this translation helpful? Give feedback.
1 reply
-
how to be with ESLint react/no-children-prop rule? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The render props pattern offers great flexibility.
But in the docs and examples using the
children
prop in theField
component is a bit unusual (though it makes sense for arenderComponent
prop).It's may be more intuitive to use this syntax for the children:
Remix uses this approach with the Await component
The feature and implementation are the same, it's just a suggestion for the documentation and examples.
Beta Was this translation helpful? Give feedback.
All reactions