function cleanupAtContainer(container) {
  ReactDOM.unmountComponentAtNode(container)
  if (container.parentNode === document.body) {
    document.body.removeChild(container)
  }
  mountedContainers.delete(container)
}
function cleanupAtContainer(container) {
  ReactDOM.unmountComponentAtNode(container)
  if (container.parentNode === document.body) {
    document.body.removeChild(container)
  }
  mountedContainers.delete(container)
}
function cleanupAtContainer ( container ) { ReactDOM . unmountComponentAtNode ( container ) if ( container . parentNode === document . body ) { document . body . removeChild ( container ) } mountedContainers . delete ( container ) }
maybe one day we'll expose this (perhaps even as a utility returned by render). but let's wait until someone asks for it.
maybe one day we ll expose this ( perhaps even as a utility returned by render ) . but let s wait until someone asks for it .
Remove a container from the DOM