diff --git a/CHANGELOG.md b/CHANGELOG.md index b8fda5941314e..973d088c258ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 19.0.0 (December 5, 2024\) +## 19.0.0 (December 5, 2024) Below is a list of all new features, APIs, deprecations, and breaking changes. Read [React 19 release post](https://react.dev/blog/2024/04/25/react-19) and [React 19 upgrade guide](https://react.dev/blog/2024/04/25/react-19-upgrade-guide) for more information. @@ -6,7 +6,7 @@ Below is a list of all new features, APIs, deprecations, and breaking changes. R ### New Features -### React +#### React * Actions: `startTransition` can now accept async functions. Functions passed to `startTransition` are called “Actions”. A given Transition can include one or more Actions which update state in the background and update the UI with one commit. In addition to updating state, Actions can now perform side effects including async requests, and the Action will wait for the work to finish before finishing the Transition. This feature allows Transitions to include side effects like `fetch()` in the pending state, and provides support for error handling, and optimistic updates. * `useActionState`: is a new hook to order Actions inside of a Transition with access to the state of the action, and the pending state. It accepts a reducer that can call Actions, and the initial state used for first render. It also accepts an optional string that is used if the action is passed to a form `action` prop to support progressive enhancement in forms. @@ -15,7 +15,7 @@ Below is a list of all new features, APIs, deprecations, and breaking changes. R * `ref` as a prop: Refs can now be used as props, removing the need for `forwardRef`. * **Suspense sibling pre-warming**: When a component suspends, React will immediately commit the fallback of the nearest Suspense boundary, without waiting for the entire sibling tree to render. After the fallback commits, React will schedule another render for the suspended siblings to “pre-warm” lazy requests. -### React DOM Client +#### React DOM Client * `
action` prop: Form Actions allow you to manage forms automatically and integrate with `useFormStatus`. When a ` action` succeeds, React will automatically reset the form for uncontrolled components. The form can be reset manually with the new `requestFormReset` API. * `