Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: specify minimum required react version #36091

Merged
merged 1 commit into from Apr 15, 2022
Merged

Conversation

balazsorban44
Copy link
Member

Fixes #36041

This might be a useful addition in light of third-party lib issues around React 18, even if Next.js itself does not concern itself with those issues.

Bug

  • Related issues linked using fixes #number
  • Integration tests added
  • Errors have helpful link attached, see contributing.md

Feature

  • Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
  • Related issues linked using fixes #number
  • Integration tests added
  • Documentation added
  • Telemetry added. In case of a feature if it's used or not.
  • Errors have helpful link attached, see contributing.md

Documentation / Examples

  • Make sure the linting passes by running yarn lint

@shuding
Copy link
Member

shuding commented Apr 12, 2022

Is it true that the minimum React version for Next.js 12 is 17.0.2 (the last version before React 18)? I thought versions like 17.0.0 also works?

@balazsorban44
Copy link
Member Author

balazsorban44 commented Apr 13, 2022

Peer dependencies says:

"react": "^17.0.2 || ^18.0.0-0",

(I guess this allows 17.0.0 and 17.0.1 as well, and is probably safe.)

But the migration docs says:

Most applications already use the latest version of React, with Next.js 11 the minimum React version has been updated to 17.0.2.

@timneutkens timneutkens merged commit c0f979b into canary Apr 15, 2022
@timneutkens timneutkens deleted the docs/upgrade-11-12 branch April 15, 2022 12:43
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docs: upgrade guide with specific React version
4 participants