Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-7189

Remove our uses of ReactDOM.render

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Merged
    • Icon: Should have 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

            oagbernd Osong Agberndifor
            mleray Maud Leray
            Maud Leray Maud Leray
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: