Is there a way to get all root elements in React?
I have a situation where elements are being created at the root via ReactDOM.render, however they are not being unmounted when my component unmounts.
I would like to get all elements, other than AppContainer and then unmount them when my component upmounts, is this possible?