Skip to content

Upgrade React JS to v17 #390

@abdullahwaheed

Description

@abdullahwaheed

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions