Skip to content

Commit fd8b1e0

Browse files
Update React v19 blog post for stable release (#7321)
* React v19 blog update * re-add sebbie's install updates Co-authored-by: Sebastian Silbermann <[email protected]> --------- Co-authored-by: Sebastian Silbermann <[email protected]>
1 parent 4bae717 commit fd8b1e0

File tree

5 files changed

+46
-35
lines changed

5 files changed

+46
-35
lines changed

src/content/blog/2024/04/25/react-19-upgrade-guide.md

+13-18
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "React 19 RC Upgrade Guide"
2+
title: "React 19 Upgrade Guide"
33
author: Ricky Hanlon
44
date: 2024/04/25
55
description: The improvements added to React 19 require some breaking changes, but we've worked to make the upgrade as smooth as possible and we don't expect the changes to impact most apps. In this post, we will guide you through the steps for upgrading apps and libraries to React 19.
@@ -12,7 +12,7 @@ April 25, 2024 by [Ricky Hanlon](https://twitter.com/rickhanlonii)
1212

1313
<Intro>
1414

15-
The improvements added to React 19 RC require some breaking changes, but we've worked to make the upgrade as smooth as possible, and we don't expect the changes to impact most apps.
15+
The improvements added to React 19 require some breaking changes, but we've worked to make the upgrade as smooth as possible, and we don't expect the changes to impact most apps.
1616

1717
</Intro>
1818

@@ -38,7 +38,7 @@ In this post, we will guide you through the steps for upgrading to React 19:
3838
- [TypeScript changes](#typescript-changes)
3939
- [Changelog](#changelog)
4040

41-
If you'd like to help us test React 19, follow the steps in this upgrade guide and [report any issues](https://github.com/facebook/react/issues/new?assignees=&labels=React+19&projects=&template=19.md&title=%5BReact+19%5D) you encounter. For a list of new features added to React 19, see the [React 19 release post](/blog/2024/04/25/react-19).
41+
If you'd like to help us test React 19, follow the steps in this upgrade guide and [report any issues](https://github.com/facebook/react/issues/new?assignees=&labels=React+19&projects=&template=19.md&title=%5BReact+19%5D) you encounter. For a list of new features added to React 19, see the [React 19 release post](/blog/2024/12/05/react-19).
4242

4343
---
4444
## Installing {/*installing*/}
@@ -70,28 +70,23 @@ We expect most apps will not be affected since the transform is enabled in most
7070
To install the latest version of React and React DOM:
7171

7272
```bash
73-
npm install --save-exact react@rc react-dom@rc
73+
npm install --save-exact react@^19.0.0 react-dom@^19.0.0
7474
```
7575

7676
Or, if you're using Yarn:
7777

7878
```bash
79-
yarn add --exact react@rc react-dom@rc
79+
yarn add --exact react@^19.0.0 react-dom@^19.0.0
8080
```
8181

82-
If you're using TypeScript, you also need to update the types. Once React 19 is released as stable, you can install the types as usual from `@types/react` and `@types/react-dom`. Until the stable release, the types are available in different packages which need to be enforced in your `package.json`:
82+
If you're using TypeScript, you also need to update the types.
83+
```bash
84+
npm install --save-exact @types/react@^19.0.0 react-dom@^19.0.0
85+
```
8386

84-
```json
85-
{
86-
"dependencies": {
87-
"@types/react": "npm:types-react@rc",
88-
"@types/react-dom": "npm:types-react-dom@rc"
89-
},
90-
"overrides": {
91-
"@types/react": "npm:types-react@rc",
92-
"@types/react-dom": "npm:types-react-dom@rc"
93-
}
94-
}
87+
Or, if you're using Yarn:
88+
```bash
89+
yarn add --exact @†ypes/react@^19.0.0 @†ypes/react-dom@^19.0.0
9590
```
9691

9792
We're also including a codemod for the most common replacements. See [TypeScript changes](#typescript-changes) below.
@@ -752,7 +747,7 @@ const reducer = (state: State, action: Action) => state;
752747
- **react-dom**: Remove layout effect warning during SSR [#26395](https://github.com/facebook/react/pull/26395)
753748
- **react-dom**: Warn and dont set empty string for src/href (except anchor tags) [#28124](https://github.com/facebook/react/pull/28124)
754749

755-
We'll publish the full changelog with the stable release of React 19.
750+
For a full list of changes, please see the [Changelog](https://github.com/facebook/react/blob/main/CHANGELOG.md#1900-december-5-2024).
756751

757752
---
758753

src/content/blog/2024/05/22/react-conf-2024-recap.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Last week we hosted React Conf 2024, a two-day conference in Henderson, Nevada w
1717

1818
---
1919

20-
At React Conf 2024, we announced the [React 19 RC](/blog/2024/04/25/react-19), the [React Native New Architecture Beta](https://github.com/reactwg/react-native-new-architecture/discussions/189), and an experimental release of the [React Compiler](/learn/react-compiler). The community also took the stage to announce [React Router v7](https://remix.run/blog/merging-remix-and-react-router), [Universal Server Components](https://www.youtube.com/watch?v=T8TZQ6k4SLE&t=20765s) in Expo Router, React Server Components in [RedwoodJS](https://redwoodjs.com/blog/rsc-now-in-redwoodjs), and much more.
20+
At React Conf 2024, we announced the [React 19 RC](/blog/2024/12/05/react-19), the [React Native New Architecture Beta](https://github.com/reactwg/react-native-new-architecture/discussions/189), and an experimental release of the [React Compiler](/learn/react-compiler). The community also took the stage to announce [React Router v7](https://remix.run/blog/merging-remix-and-react-router), [Universal Server Components](https://www.youtube.com/watch?v=T8TZQ6k4SLE&t=20765s) in Expo Router, React Server Components in [RedwoodJS](https://redwoodjs.com/blog/rsc-now-in-redwoodjs), and much more.
2121

2222
The entire [day 1](https://www.youtube.com/watch?v=T8TZQ6k4SLE) and [day 2](https://www.youtube.com/watch?v=0ckOUBiuxVY) streams are available online. In this post, we'll summarize the talks and announcements from the event.
2323

@@ -36,7 +36,7 @@ For more, check out these talks from the community later in the conference:
3636
- [RedwoodJS, now with React Server Components](https://www.youtube.com/watch?v=T8TZQ6k4SLE&t=26815s) by [Amy Dutton](https://twitter.com/selfteachme)
3737
- [Introducing Universal React Server Components in Expo Router](https://www.youtube.com/watch?v=T8TZQ6k4SLE&t=20765s) by [Evan Bacon](https://twitter.com/Baconbrix)
3838

39-
Next in the keynote, [Josh Story](https://twitter.com/joshcstory) and [Andrew Clark](https://twitter.com/acdlite) shared new features coming in React 19, and announced the React 19 RC which is ready for testing in production. Check out all the features in the [React 19 release post](/blog/2024/04/25/react-19), and see these talks for deep dives on the new features:
39+
Next in the keynote, [Josh Story](https://twitter.com/joshcstory) and [Andrew Clark](https://twitter.com/acdlite) shared new features coming in React 19, and announced the React 19 RC which is ready for testing in production. Check out all the features in the [React 19 release post](/blog/2024/12/05/react-19), and see these talks for deep dives on the new features:
4040

4141
- [What's new in React 19](https://www.youtube.com/watch?v=T8TZQ6k4SLE&t=8880s) by [Lydia Hallie](https://twitter.com/lydiahallie)
4242
- [React Unpacked: A Roadmap to React 19](https://www.youtube.com/watch?v=T8TZQ6k4SLE&t=10112s) by [Sam Selikoff](https://twitter.com/samselikoff)

src/content/blog/2024/04/25/react-19.md src/content/blog/2024/12/05/react-19.md

+19-8
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,33 @@
11
---
2-
title: "React 19 RC"
2+
title: "React v19"
33
author: The React Team
4-
date: 2024/04/25
5-
description: React 19 RC is now available on npm! In this post, we'll give an overview of the new features in React 19, and how you can adopt them.
4+
date: 2024/12/05
5+
description: React 19 is now available on npm! In this post, we'll give an overview of the new features in React 19, and how you can adopt them.
66
---
77

8-
April 25, 2024 by [The React Team](/community/team)
8+
December 05, 2024 by [The React Team](/community/team)
99

1010
---
11+
<Note>
12+
13+
### React 19 is now stable! {/*react-19-is-now-stable*/}
14+
15+
Additions since this post was originally shared with the React 19 RC in April:
16+
17+
- **Pre-warming for suspended trees**: see [Improvements to Suspense](/blog/2024/04/25/react-19-upgrade-guide#improvements-to-suspense).
18+
- **React DOM static APIs**: see [New React DOM Static APIs](#new-react-dom-static-apis).
19+
20+
_The date for this post has been update to reflect the stable release date._
21+
22+
</Note>
1123

1224
<Intro>
1325

14-
React 19 RC is now available on npm!
26+
React v19 is now available on npm!
1527

1628
</Intro>
1729

18-
In our [React 19 RC Upgrade Guide](/blog/2024/04/25/react-19-upgrade-guide), we shared step-by-step instructions for upgrading your app to React 19. In this post, we'll give an overview of the new features in React 19, and how you can adopt them.
30+
In our [React 19 Upgrade Guide](/blog/2024/04/25/react-19-upgrade-guide), we shared step-by-step instructions for upgrading your app to React 19. In this post, we'll give an overview of the new features in React 19, and how you can adopt them.
1931

2032
- [What's new in React 19](#whats-new-in-react-19)
2133
- [Improvements in React 19](#improvements-in-react-19)
@@ -771,5 +783,4 @@ Thanks to [Joey Arhar](https://github.com/josepharhar) for driving the design an
771783
#### How to upgrade {/*how-to-upgrade*/}
772784
See the [React 19 Upgrade Guide](/blog/2024/04/25/react-19-upgrade-guide) for step-by-step instructions and a full list of breaking and notable changes.
773785

774-
775-
786+
_Note: this post was originally published 04/25/2024 and has been updated to 12/05/2024 with the stable release._

src/content/blog/index.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,25 @@ This blog is the official source for the updates from the React team. Anything i
1010

1111
<div className="sm:-mx-5 flex flex-col gap-5 mt-12">
1212

13-
<BlogCard title="React Compiler Beta Release" date="October 21, 2024" url="/blog/2024/10/21/react-compiler-beta-release">
13+
<BlogCard title="React v19 " date="December 5, 2024" url="/blog/2024/12/05/react-19">
1414

15-
We announced an experimental release of React Compiler at React Conf 2024. We've made a lot of progress since then, and in this post we want to share what's next for React Compiler ...
15+
In the React 19 Upgrade Guide, we shared step-by-step instructions for upgrading your app to React 19. In this post, we'll give an overview of the new features in React 19, and how you can adopt them ...
1616

1717
</BlogCard>
1818

19-
<BlogCard title="React Conf 2024 Recap" date="May 22, 2024" url="/blog/2024/05/22/react-conf-2024-recap">
19+
<BlogCard title="React Compiler Beta Release" date="October 21, 2024" url="/blog/2024/10/21/react-compiler-beta-release">
2020

21-
Last week we hosted React Conf 2024, a two-day conference in Henderson, Nevada where 700+ attendees gathered in-person to discuss the latest in UI engineering. This was our first in-person conference since 2019, and we were thrilled to be able to bring the community together again ...
21+
We announced an experimental release of React Compiler at React Conf 2024. We've made a lot of progress since then, and in this post we want to share what's next for React Compiler ...
2222

2323
</BlogCard>
2424

25-
<BlogCard title="React 19 RC " date="April 25, 2024" url="/blog/2024/04/25/react-19">
25+
<BlogCard title="React Conf 2024 Recap" date="May 22, 2024" url="/blog/2024/05/22/react-conf-2024-recap">
2626

27-
In the React 19 RC Upgrade Guide, we shared step-by-step instructions for upgrading your app to React 19. In this post, we'll give an overview of the new features in React 19, and how you can adopt them ...
27+
Last week we hosted React Conf 2024, a two-day conference in Henderson, Nevada where 700+ attendees gathered in-person to discuss the latest in UI engineering. This was our first in-person conference since 2019, and we were thrilled to be able to bring the community together again ...
2828

2929
</BlogCard>
3030

31-
<BlogCard title="React 19 RC Upgrade Guide" date="April 25, 2024" url="/blog/2024/04/25/react-19-upgrade-guide">
31+
<BlogCard title="React 19 Upgrade Guide" date="April 25, 2024" url="/blog/2024/04/25/react-19-upgrade-guide">
3232

3333
The improvements added to React 19 require some breaking changes, but we've worked to make the upgrade as smooth as possible, and we don't expect the changes to impact most apps. In this post, we will guide you through the steps for upgrading libraries to React 19 ...
3434

vercel.json

+5
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,11 @@
184184
"destination": "/reference/rsc/use-server",
185185
"permanent": true
186186
},
187+
{
188+
"source": "/blog/2024/04/25/react-19",
189+
"destination": "/blog/2024/12/05/react-19",
190+
"permanent": true
191+
},
187192
{
188193
"source": "/feed.xml",
189194
"destination": "/rss.xml",

0 commit comments

Comments
 (0)