react-version.md: Update minimum React version for Next.js 13 (#42490)

Updated minimum React version to match information at https://nextjs.org/blog/next-13. This page is the first Google result for "next.js 13 react 17" and the info in it is out of data after Next.js 13 was released.

## Documentation / Examples

- [x] Make sure the linting passes by running `pnpm build && pnpm lint`
- [x] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
This commit is contained in:
davidnx 2022-11-04 12:44:22 -03:00 committed by GitHub
parent 4ffde56ece
commit ee62acacfe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,7 @@
Your project is using an old version of `react` or `react-dom` that does not Your project is using an old version of `react` or `react-dom` that does not
meet the suggested minimum version requirement. meet the suggested minimum version requirement.
Next.js suggests using, at a minimum, `react@17.0.2` and `react-dom@17.0.2`. Next.js suggests using, at a minimum, `react@18.2.0` and `react-dom@18.2.0`.
Older versions of `react` and `react-dom` do work with Next.js, however, they do Older versions of `react` and `react-dom` do work with Next.js, however, they do
not enable all of Next.js' features. not enable all of Next.js' features.
@ -39,8 +39,8 @@ yarn add react@latest react-dom@latest
```json ```json
{ {
"dependencies": { "dependencies": {
"react": "^17.0.2", "react": "^18.2.0",
"react-dom": "^17.0.2" "react-dom": "^18.2.0"
} }
} }
``` ```