src/Dom.js
function isNodeInRoot(node, root) {
    node = ReactDOM.findDOMNode(node), root = ReactDOM.findDOMNode(root);
    return _isNodeInRoot(node, root);
}
function isNodeInRoot(node, root) {
    node = ReactDOM.findDOMNode(node), root = ReactDOM.findDOMNode(root);
    return _isNodeInRoot(node, root);
}
function isNodeInRoot ( node , root ) { node = ReactDOM . findDOMNode ( node ) , root = ReactDOM . findDOMNode ( root ) ; return _isNodeInRoot ( node , root ) ; }
Checks whether a node is within
a root nodes tree

@param {DOMElement} node
@param {DOMElement} root
@returns {boolean}
Checks whether a node is within a root nodes tree