diff --git a/src/content/blog/2024/04/01/react-19.md b/src/content/blog/2024/04/01/react-19.md index a2e58f9a4..09bfef409 100644 --- a/src/content/blog/2024/04/01/react-19.md +++ b/src/content/blog/2024/04/01/react-19.md @@ -86,7 +86,7 @@ Actions automatically manage submitting data for you: - **Pending state**: Actions provide a pending state that starts at the beginning of a request and automatically resets when the final state update is committed. - **Optimistic updates**: Actions support the new [`useOptimistic`](#new-feature-optimistic-updates) hook so you can show users instant feedback while the requests are submitting. - **Error handling**: Actions provide error handling so you can and display Error Boundaries when a request fails, and revert optimistic updates to their original value automatically. -- **Forms**: Actions integrate with new `action` and `formActions` props as [`
` Actions](#form-actions). This means form submissions use Actions by default and reset the form automatically after submission. +- **Forms**: `` elements now support passing functions to the `action` and `formAction` props. Passing functions to the `action` props use Actions by default and reset the form automatically after submission. @@ -124,10 +124,10 @@ For more information, see the docs for [`useActionState`](/reference/react/useAc ### `` Actions {/*form-actions*/} -Actions are also integrated with React 19's new `` features. We've added `action` and `formAction` props to React DOM ``, ``, and `