unmount method
void
unmount()
Unmounts the React component instance and cleans up any attached DOM nodes.
Implementation
void unmount() {
_isMounted = false;
react_util.unmount(_renderedInstance);
mountNode.remove();
react_util.tearDownAttachedNodes();
}