Skip to content
This repository was archived by the owner on Aug 28, 2026. It is now read-only.
This repository was archived by the owner on Aug 28, 2026. It is now read-only.

[QUESTION]: Is there planned support for React 19? #3412

Open

Description

I have a project which relies on React 19 and I want to be able to use the people picker component. Is there planned support for React 19? If so, what is the expected release window?

Activity

  1. Mnickii commented on Mar 13, 2025

    @Mnickii
    Collaborator

    Thank you Cian Gibbons (@CianGibbons) for your question. MGT is currently on maintenance, prioritizing bug fixes and security issues and for now, there's no planned work to support React 19.

  2. tobi1220 commented on May 29, 2025

    @tobi1220
    Contributor

    For anyone else who might stumble upon this issue: to make mgt-react work under React 19, all you have to do is replace the call to ReactDOM.render() inside handleTemplateRendered() in /dist/es6/Mgt.js with a call to createRoot(). Make sure to replace the old import with the new as well, like so:

    // ...
    // -import ReactDOM from 'react-dom';
    import { createRoot } from 'react-dom/client';
    // ...
    
    export class Mgt extends Wc {
      // ...
    
      this.handleTemplateRendered = (e) => {
        // ...
        if (template) {
          template = React.cloneElement(template, { dataContext });
          // -ReactDOM.render(template, element);
          const root = createRoot(element);
          root.render(template);
        }
      };
    // ...

    See my PR for reference: #3449

    If you use a package manager that supports patching, like Yarn or PNPM, you can do this fairly easy, e.g. (for PNPM):

    pnpm patch @microsoft/mgt-react@4.6.0
    

    /cc Cian Gibbons (@CianGibbons)

  3. sbaechler commented on Jun 20, 2025

    @sbaechler

    Nickii Miaro (@Mnickii) Is there a successor library for mgt-react?

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

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions