-
The render props pattern offers great flexibility. <form.Field children={(field) => ( ... )}/> It's may be more intuitive to use this syntax for the children: <form.Field>
{(field) => ( ... )}
</form.Field> 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.
Replies: 4 comments 4 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.
-
would the following syntax be an option?
|
Beta Was this translation helpful? Give feedback.
-
how to be with ESLint react/no-children-prop rule? |
Beta Was this translation helpful? Give feedback.
-
Is the expectation to still ignore that ESlint rule? @crutchcorn |
Beta Was this translation helpful? Give feedback.
You can add this to your eslintrc.
Alternatively you can do