Unverified Commit 5be354ed authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Add note to upgrading guide about React version (#25849)

Co-authored-by: 's avatarGerald Monaco <gbmonaco@google.com>
parent 4df4a255
......@@ -6,6 +6,22 @@ description: Learn how to upgrade Next.js.
## Upgrading from version 10 to 11
## Upgrade React version to latest
Most applications already use the latest version of React, with Next.js 11 the minimum React version has been updated to 17.0.2.
To upgrade you can run the following command:
```
npm install react@latest react-dom@latest
```
Or using `yarn`:
```
yarn add next@latest react-dom@latest
```
### Remove `super.componentDidCatch()` from `pages/_app.js`
The `next/app` component's `componentDidCatch` has been deprecated since Next.js 9 as it's no longer needed and has since been a no-op, in Next.js 11 it has been removed.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment