-
Notifications
You must be signed in to change notification settings - Fork 8
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
Upgrade to React 18 #3231
Upgrade to React 18 #3231
Conversation
Since we only need to update the types, it should still be possible to support React 17.
I tried to fix the type errors by only adapting types, not changing behavior. So in theory this should still support React 17. Should we remove support for React 17 anyway? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we drop support for React 17?
I'm fine either way. We recommend upgrading to React 18. So I see no real benefit in keeping the support for 17. But since the changes seem to be minimal, we can also keep it.
Do we need an upgrade script?
I'd say: No. Though we could create an upgrade script that executes the React codemods
Do we need a section in the migration guide?
Yes. At least a reference to the React migration guide
I'd say let's keep it. Maybe a project needs to upgrade to Comet 8 urgently. The upgrade to React 18 can be performed later (like we did for App Router).
These codemods aren't from the React itself and not safe in every scenario. IMO devs should explicitly decide to run them. I've mentioned them in the migration guide though. |
Description
Upgrade React to v18. Followed the official migration guide on how to upgrade.
Note: This upgrades Docusaurus as well. After spending quite some time trying to fix issues between React 17 and React 18 types, I've decided that it's easier to upgrade Docusaurus in this PR. Sorry for the many changes 😬
Acceptance criteria
Open TODOs/questions
Further information