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

Upgrade React JS to v17 #390

Open
abdullahwaheed opened this issue Jun 9, 2023 · 0 comments
Open

Upgrade React JS to v17 #390

abdullahwaheed opened this issue Jun 9, 2023 · 0 comments

Comments

@abdullahwaheed
Copy link

Most of the MFEs of edX are currently using React JS v16. In order to use latest React JS, we are planning to upgrade React JS to v17. React 17 doesn’t add any new developer-facing features, so its upgrade might not cause any breaking changes. Our end goal is to upgrade React to v18 but v18 no longer support enzyme, so we are upgrading to React 17 and then we’ll migrate from enzyme.

In each MFE/library, with React, React DOM 17 upgrade, we may need to upgrade following

  • in case of Typescript, install @types/react@17.0.0
  • If you are using React Testing Library, you would want to be under 12.1.5, which is the latest version that supports React < 18.
  • Replace enzyme-adapter-react-16 with @wojtekmaj/enzyme-adapter-react-17 since enzyme doesn't provide support for react 17.
  • react-test-renderer should also be updated.
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

No branches or pull requests

1 participant