Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Enable support for React 18 #53

Merged

Conversation

adamstankiewicz
Copy link
Contributor

@adamstankiewicz adamstankiewicz commented Feb 12, 2025

The Open edX MFEs are overdue to support React 18 (especially as React 19 is already out now, too). Some efforts have been started to support React 18 in the shared JavaScript libraries, such as Paragon (openedx/paragon#3367, v22 and v23).

By enabling support for React 18 (should be additive-only), we can further enable incremental migration to React 18 within MFEs. Most of the changes are within the example MFE included in this repository for testing.

The React 18 Upgrade Guide was followed.

@brian-smith-tcril
Copy link
Contributor

closing and re-opening to get actions to run

@adamstankiewicz adamstankiewicz force-pushed the ags/react-18 branch 2 times, most recently from b65cc91 to 5c37a29 Compare February 24, 2025 13:49
},
"peerDependencies": {
"@edx/frontend-component-footer": "*",
"react": "^17.0.0"
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[inform] Any concerns about including react-dom here? My understand is that anywhere react is a peer dep, react-dom should be, too?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think adding react-dom here makes sense. It's a peer dep in frontend-component-footer so that's likely why not having it wasn't causing problems before.

Copy link
Contributor

@brian-smith-tcril brian-smith-tcril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@brian-smith-tcril brian-smith-tcril merged commit 469cc9f into openedx-unsupported:master Feb 24, 2025
4 checks passed
Copy link

codecov bot commented Feb 24, 2025

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@openedx-semantic-release-bot

🎉 This PR is included in version 1.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants