src/Dom.js
function ownerDocument(componentOrElement) {
    var elem = ReactDOM.findDOMNode(componentOrElement);
    return elem && elem.ownerDocument || document;
}
function ownerDocument(componentOrElement) {
    var elem = ReactDOM.findDOMNode(componentOrElement);
    return elem && elem.ownerDocument || document;
}
function ownerDocument ( componentOrElement ) { var elem = ReactDOM . findDOMNode ( componentOrElement ) ; return elem && elem . ownerDocument || document ; }
Get elements owner document

@param {ReactComponent|HTMLElement} componentOrElement
@returns {HTMLElement}
Get elements owner document