-
Task
-
Resolution: Merged
-
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
- https://reactjs.org/link/switch-to-createroot
- Relevant fix on this for the media archive picker js code.
- duplicates
-
PLANET-7207 ReactDOM.hydrate is deprecated since React 18
- CLOSED
- relates to
-
PLANET-7233 Fix the createRoot() within the p4/side-image-with-text-and-cta
- CLOSED