From f1bdfa2ea6bca850039c0b0beb5d080750a57739 Mon Sep 17 00:00:00 2001 From: Sebastian Silbermann Date: Wed, 12 Jun 2024 11:23:43 +0200 Subject: [PATCH] Recommend installing exact RC (#6944) --- src/content/blog/2024/04/25/react-19-upgrade-guide.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/content/blog/2024/04/25/react-19-upgrade-guide.md b/src/content/blog/2024/04/25/react-19-upgrade-guide.md index 5d222cb97..f464df959 100644 --- a/src/content/blog/2024/04/25/react-19-upgrade-guide.md +++ b/src/content/blog/2024/04/25/react-19-upgrade-guide.md @@ -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`: