Closed arunvishnun closed 6 months ago
In React 18, unmountComponentAtNode was replaced by root.unmount().
Reference: https://react.dev/reference/react-dom/unmountComponentAtNode#unmountcomponentatnode
To accommodate this update, this PR modifies the implementation to expose the root object. By doing so, it enables applications built with SubappV1 to leverage root.unmount() for managing component lifecycles more effectively.
root
root.unmount()
Summary
In React 18, unmountComponentAtNode was replaced by root.unmount().
Reference: https://react.dev/reference/react-dom/unmountComponentAtNode#unmountcomponentatnode
To accommodate this update, this PR modifies the implementation to expose the
root
object. By doing so, it enables applications built with SubappV1 to leverageroot.unmount()
for managing component lifecycles more effectively.