Skip to content

Commit f1bdfa2

Browse files
authored
Recommend installing exact RC (#6944)
1 parent c36bd39 commit f1bdfa2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,13 @@ 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 react@rc react-dom@rc
73+
npm install --save-exact react@rc react-dom@rc
74+
```
75+
76+
Or, if you're using Yarn:
77+
78+
```bash
79+
yarn add --exact react@rc react-dom@rc
7480
```
7581

7682
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`:

0 commit comments

Comments
 (0)