Remove our uses of ReactDOM.render

XMLWordPrintable

    • Type: Task
    • Resolution: Merged
    • Priority: Should have
    • None
    • None
    • 5
    • Maintenance
    • Sprint #215
    • jupiter

      Summary

      ReactDOM.render is no longer supported in React 18, we need to use createRoot instead (see attached screenshot). For now we use this function in the Gallery and CarouselHeader blocks.

      In addition, ReactDOM.hydrate is also no longer supported.

      assets/src/functions/hydrateBlock.js
        error  ReactDOM.hydrate is deprecated since React 18.0.0, use hydrateRoot instead, see https://reactjs.org/link/switch-to-createroot  react/no-deprecated
      

      Resources

            Assignee:
            Osong Agberndifor
            Reporter:
            Maud Leray
            Maud Leray Maud Leray
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: