You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you can see, we just need to make sure that every input field has a `name` attribute so that the server function can extract the value of the input field from the form data.
387
388
389
+
<Callouttype="info"title="Good to know">
390
+
For more information on using server functions, please refer to the [Updating
391
+
Data](../guide/updating-data.mdx) guide.
392
+
</Callout>
393
+
388
394
### Input validation
389
395
390
396
Another common case to use controlled inputs is to validate the input values before sending data to the server. Here's some things you should consider before turning your input fields into controlled components.
@@ -662,6 +668,12 @@ Or we can have `Tabs` component with custom styling like for the tabs list and t
662
668
663
669
With compound pattern, we have a clear separation of concerns and more flexibility.
664
670
671
+
<Callouttype="info"title="Rule of thumb">
672
+
Always aim to keep the component simple with minimum responsibility. Use the
673
+
compound pattern to further break down the component into smaller components
0 commit comments