From dfc137c39e32e8d6b1c550f57e4efae43817eef1 Mon Sep 17 00:00:00 2001 From: Rick Hanlon Date: Thu, 25 Apr 2024 17:41:55 -0400 Subject: [PATCH] Clarify React DOM APIs in React 19 Post --- src/content/blog/2024/04/25/react-19.md | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/content/blog/2024/04/25/react-19.md b/src/content/blog/2024/04/25/react-19.md index 53717119c3b..227cd3ea27d 100644 --- a/src/content/blog/2024/04/25/react-19.md +++ b/src/content/blog/2024/04/25/react-19.md @@ -115,7 +115,7 @@ Actions automatically manage submitting data for you: -Building on top of Actions, we're also introducing [`
` Actions](#form-actions) to manage forms automatically, [`useOptimistic`](#new-hook-optimistic-updates) to manage optimistic updates, and new hooks [`useActionState`](#new-hook-useactionstate), [`useFormStatus`](#new-hook-useformstatus) to support the common cases for Actions and Forms. +Building on top of Actions, React 19 introduces [`useOptimistic`](#new-hook-optimistic-updates) to manage optimistic updates, and a new hook [`React.useActionState`](#new-hook-useactionstate) to handle common cases for Actions. In `react-dom` we're adding [`` Actions](#form-actions) to manage forms automatically and [`useFormStatus`](#new-hook-useformstatus) to support the common cases for Actions in forms. In React 19, the above example can be simplified to: @@ -173,9 +173,9 @@ See [#28491](https://github.com/facebook/react/pull/28491) for more info. For more information, see the docs for [`useActionState`](/reference/react/useActionState). -### `` Actions {/*form-actions*/} +### React DOM: `` Actions {/*form-actions*/} -Actions are also integrated with React 19's new `` features. We've added support for passing functions as the `action` and `formAction` props of ``, ``, and `