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

[deps] Update to React v18 #3851

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open

[deps] Update to React v18 #3851

wants to merge 19 commits into from

Conversation

bgptr
Copy link
Collaborator

@bgptr bgptr commented Feb 8, 2023

The first step toward #3842

This diff updates to React v18 and enjoys the benefit of automatic performance improvement. It does not take further steps toward the new features, but it will be a good starting point.

The biggest issue was the react-hot-loader, which is not maintained anymore and is not compatible with v18. I successfully replaced it with React Fast Refresh though, which is the recommended way.

@testing-library/* libraries also have been updated and the tests are fixed.

On top of this, we can gradually adopt the new features:

  • use the new APIs for concurrent rendering:
    • startTransition
    • useDeferredValue
  • update to strict mode

Tested on Linux, and macOS (amd64).

@dajohi
Copy link
Member

dajohi commented Jun 20, 2023

@bgptr can you please rebase this?

@bgptr
Copy link
Collaborator Author

bgptr commented Jun 22, 2023

@dajohi Sure. I will do it asap.

@bgptr bgptr force-pushed the react-v18 branch 4 times, most recently from 771887d to 41db4aa Compare July 2, 2023 10:32
…from the selector.

Thus decreasing interference of the tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants