Closed
Description
When calling unmountComponentAtNode(document.getElementById('react-root'))
, it returns false
.
This would normally happen because I'm trying to unmount something that's not a React node, but that's not the case.
I'm using unstable_createRoot
. If I use render
instead, it works fine.
React version: 0.0.0-experimental-79740da4c
Steps To Reproduce
- Render component with
unstable_createRoot
. - Try to unmount the app with
unmountComponentAtNode
.
Link to code example: https://codesandbox.io/s/epic-leftpad-ih6ts?file=/src/index.js
The current behavior
Doesn't unmount the root React component.
The expected behavior
Should unmount the root React component.