Skip to content

[DEPR]: react-helmet for global <head /> configuration #415

Closed

Description

@arbrandes

RFC Start Date

2025-08-01

Target Plan Accepted Date

2025-08-15

Target Transition Unblocked Date

October 2025

Earliest Breaking Changes Unblocked Date

January 2026

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.

Furthermore, each deployment's index.html is now entirely part of site configuration, so there's no need to have code alter it dynamically except when strictly necessary, such as when changing the page title upon navigation.

Removal

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.

Deprecation

No response

Additional Info

No response

Task List

No response

Task List

No response

Activity

  1. self-assigned this
    on Aug 1, 2025
  2. added
    deprProposal for deprecation & removal per OEP-21
    on Aug 1, 2025
  3. moved this to In Progress in frontend-baseon Aug 1, 2025
  4. bradenmacdonald commented on Aug 21, 2025

    @bradenmacdonald

    @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.

  5. arbrandes commented on Sep 22, 2025

    @arbrandes
    Author

    @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.

    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 in index.html.

    Thanks!

  6. changed the title [-][DEPR]: react-helmet and methods that modify `<head>` directly[/-] [+][DEPR]: react-helmet for global `<head />` configuration[/+] on Sep 22, 2025
  7. bradenmacdonald commented on Sep 22, 2025

    @bradenmacdonald

    @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/title

    But until then, I think we need it.

  8. moved this from In Progress to Todo in frontend-baseon Jan 14, 2026
  9. added theissue type on Jan 14, 2026
  10. changed the issue type fromtoon Jan 28, 2026
  11. removed their assignment
    on Apr 23, 2026
  12. arbrandes commented on Nov 18, 2026

    @arbrandes
    Author

    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 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    deprProposal for deprecation & removal per OEP-21

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions