You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[DEPR]: react-helmet for global <head /> configuration #415
Earliest Open edX Named Release with Breaking Changes
Verawood - 2026-04
Rationale
Once a frontend app is converted to frontend-base, it is expected to be loaded as one of many such packages in a proper SPA. In other words, index.html now applies to several apps, not just one. As such, it no longer makes sense to expect each app to modify the header dynamically for global properties of the site, such as the favicon.
Any uses of react-helmet that set site-global <head> properties.
Replacement
The way frontend-base deployments work allow operators to modify index.html directly, and to maintain those modifications under version control. See https://github.com/openedx/frontend-template-site.
@arbrandes How are MFEs supposed to change the page title when users soft navigate to a new page within the same MFE? Currently that's one of our main use cases for React Helmet and I don't see a replacement mentioned here.
@bradenmacdonald, that's a good point. Maybe making this a general deprecation was premature. react-helmet doesn't seem necessary for the MFEs we looked at to convert to frontend-base so far (these only use <Helmet /> to set the favicon), but it doesn't mean that it won't be for all of them.
changed the title [-][DEPR]: react-helmet and methods that modify `<head>` directly[/-][+][DEPR]: react-helmet for global `<head />` configuration[/+]on Sep 22, 2025
One correction to what's written above. Apps did stop setting site-wide <head> properties, the favicon in particular: that's now done in the site's own public/index.html. But they still set their page titles, and most still use react-helmet to do it, so the library itself isn't gone. The plan there is to move to a usePageTitle hook.
As for dates: this landed with each MFE's conversion to frontend-base, not with Verawood. The legacy MFEs are deprecated in Willow and removed in Xylon.
Activity
bradenmacdonald commentedon Aug 21, 2025
@arbrandes How are MFEs supposed to change the page title when users soft navigate to a new page within the same MFE? Currently that's one of our main use cases for React Helmet and I don't see a replacement mentioned here.
arbrandes commentedon Sep 22, 2025
@bradenmacdonald, that's a good point. Maybe making this a general deprecation was premature.
react-helmetdoesn't seem necessary for the MFEs we looked at to convert to frontend-base so far (these only use<Helmet />to set the favicon), but it doesn't mean that it won't be for all of them.It didn't take me long to find an exception. 😅
So I'm restricting the scope so that we're only DEPRing setting favicon or other global
<head />elements that are best set directly inindex.html.Thanks!
[-][DEPR]: react-helmet and methods that modify `<head>` directly[/-][+][DEPR]: react-helmet for global `<head />` configuration[/+]bradenmacdonald commentedon Sep 22, 2025
@arbrandes Once we upgrade to React 19, it has built-in support for setting
<title>from anywhere, without react-helmet: https://react.dev/reference/react-dom/components/titleBut until then, I think we need it.
arbrandes commentedon Nov 18, 2026
Superseded by #580, so I'm closing this one.
One correction to what's written above. Apps did stop setting site-wide
<head>properties, the favicon in particular: that's now done in the site's ownpublic/index.html. But they still set their page titles, and most still usereact-helmetto do it, so the library itself isn't gone. The plan there is to move to ausePageTitlehook.As for dates: this landed with each MFE's conversion to frontend-base, not with Verawood. The legacy MFEs are deprecated in Willow and removed in Xylon.