build/web/c0.js
function(node) {
    var current = node;
    while (current && current.parentNode !== current) {
      if (ReactMount.isRenderedByReact(current)) {
        return current;
      }
      current = current.parentNode;
    }
    return null;
  }
function(node) {
    var current = node;
    while (current && current.parentNode !== current) {
      if (ReactMount.isRenderedByReact(current)) {
        return current;
      }
      current = current.parentNode;
    }
    return null;
  }
function ( node ) { var current = node ; while ( current && current . parentNode !== current ) { if ( ReactMount . isRenderedByReact ( current ) ) { return current ; } current = current . parentNode ; } return null ; }
Traverses up the ancestors of the supplied node to find a node that is a
DOM representation of a React component.

@param {*} node
@return {?DOMEventTarget}
@internal
Traverses up the ancestors of the supplied node to find a node that is a DOM representation of a React component .