docs/js/common.js
function unmountComponentFromNode(instance, container, safely) {
	  if (false) {
	    ReactInstrumentation.debugTool.onBeginFlush();
	  }
	  ReactReconciler.unmountComponent(instance, safely);
	  if (false) {
	    ReactInstrumentation.debugTool.onEndFlush();
	  }
	
	  if (container.nodeType === DOC_NODE_TYPE) {
	    container = container.documentElement;
	  }
	
	  // http://jsperf.com/emptying-a-node
	  while (container.lastChild) {
	    container.removeChild(container.lastChild);
	  }
	}
function unmountComponentFromNode(instance, container, safely) {
	  if (false) {
	    ReactInstrumentation.debugTool.onBeginFlush();
	  }
	  ReactReconciler.unmountComponent(instance, safely);
	  if (false) {
	    ReactInstrumentation.debugTool.onEndFlush();
	  }
	
	  if (container.nodeType === DOC_NODE_TYPE) {
	    container = container.documentElement;
	  }
	
	  // http://jsperf.com/emptying-a-node
	  while (container.lastChild) {
	    container.removeChild(container.lastChild);
	  }
	}
function unmountComponentFromNode ( instance , container , safely ) { if ( false ) { ReactInstrumentation . debugTool . onBeginFlush ( ) ; } ReactReconciler . unmountComponent ( instance , safely ) ; if ( false ) { ReactInstrumentation . debugTool . onEndFlush ( ) ; } if ( container . nodeType === DOC_NODE_TYPE ) { container = container . documentElement ; } // http://jsperf.com/emptying-a-node while ( container . lastChild ) { container . removeChild ( container . lastChild ) ; } }
Unmounts a component and removes it from the DOM.

@param {ReactComponent} instance React component instance.
@param {DOMElement} container DOM element to unmount from.
@final
@internal
@see {ReactMount.unmountComponentAtNode}
Unmounts a component and removes it from the DOM .