Skip to content

Commit

Permalink
Recommend installing exact RC (#6944)
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon authored Jun 12, 2024
1 parent c36bd39 commit f1bdfa2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/content/blog/2024/04/25/react-19-upgrade-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,13 @@ We expect most apps will not be affected since the transform is enabled in most
To install the latest version of React and React DOM:

```bash
npm install react@rc react-dom@rc
npm install --save-exact react@rc react-dom@rc
```

Or, if you're using Yarn:

```bash
yarn add --exact react@rc react-dom@rc
```

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`:
Expand Down

0 comments on commit f1bdfa2

Please sign in to comment.