code: function ownerDocument(componentOrElement) {
      var elem = ReactDOM.findDOMNode(componentOrElement);
      return elem && elem.ownerDocument || document;
  }
docs: Get elements owner document
  
  @param {ReactComponent|HTMLElement} componentOrElement
  @returns {HTMLElement}