Repository navigation
Commit c1178e2
Update form documentation for forms default reset behavior (#8512)
* Enhance form documentation for form default reset behavior
* Reorder sections for better progressive disclosure of ideas
* fix typos in form.md
* Normalize MDN links in form.md
* Standardized all Usage headings in form.md to imperative form
* add useOptimistic reference
* Standardize section headings in form.md to imperative form
* revert 'action' prop change
* Enhance form submission documentation by clarifying the use of the `action` prop and its behavior:
- including the handling of `FormData`,
- the necessity of `name` attributes,
- the advantages of using a function over a URL.
- removed redundant information about `e.preventDefault()` for the `action` prop.
* clean up Handling form submission with an action prop
* clean up preserving form values after submission
* update code example for Handling multiple submission types
* Clean up code example for Handling multiple submission types
* update form documentation with more examples of keeping form values after submission
* add useFormStatus to benefits of using Action
* Move reset form section to the bottom of the page and update examples
* updates based on pr feedback
* Enhance form documentation by clarifying the `action` and `method` props, including details on handling form submissions with functions and the implications of using `formAction`. Update examples and caveats for better understanding of form behavior in React.
* small cleanups
* Refine form Action documentation
* update Preserving form values after an Action section based on feedback
* update on onSubmit vs action prop note
* Enhance form documentation by expanding on the use of Server Functions in the `action` prop, including detailed examples for passing extra data and handling form submissions. Clarify the behavior of form elements and their interaction with `FormData`.
* fixing onSubmit link and code example clean up
* remove unneeded hidden items
* Polish form documentation wording
* Restore Transition link in form docs
* Clarify form value preservation examples and guidance
---------
Co-authored-by: Aurora Scharff <aurora.sofie@gmail.com>1 parent 2177e28 commit c1178e2
3 files changed
Lines changed: 435 additions & 105 deletions
File tree
- src/content/reference
- react-dom/components
- react
- rsc
0 commit comments