function findDOMNode(componentOrElement) {
  if (__DEV__) {
    var owner = ReactCurrentOwner.current;
    if (owner !== null) {
      warning(
        owner._warnedAboutRefsInRender,
        '%s is accessing findDOMNode inside its render(). ' +
        'render() should be a pure function of props and state. It should ' +
        'never access something that requires stale data from the previous ' +
        'render, such as refs. Move this logic to componentDidMount and ' +
        'componentDidUpdate instead.',
        owner.getName() || 'A component'
      );
      owner._warnedAboutRefsInRender = true;
    }
  }
  if (componentOrElement == null) {
    return null;
  }
  if (componentOrElement.nodeType === 1) {
    return componentOrElement;
  }

  var inst = ReactInstanceMap.get(componentOrElement);
  if (inst) {
    inst = getNativeComponentFromComposite(inst);
    return inst ? ReactDOMComponentTree.getNodeFromInstance(inst) : null;
  }

  if (typeof componentOrElement.render === 'function') {
    invariant(
      false,
      'findDOMNode was called on an unmounted component.'
    );
  } else {
    invariant(
      false,
      'Element appears to be neither ReactComponent nor DOMNode (keys: %s)',
      Object.keys(componentOrElement)
    );
  }
}
/**
 * Returns the DOM node rendered by this element.
 *
 * @param {ReactComponent|DOMElement} componentOrElement
 * @return {?DOMElement} The root node of this element.
 */
Returns the DOM node rendered by this element.
Returns the DOM node rendered by this element .
function findDOMNode(componentOrElement) {
  if (__DEV__) {
    var owner = ReactCurrentOwner.current;
    if (owner !== null) {
      warning(
        owner._warnedAboutRefsInRender,
        '%s is accessing findDOMNode inside its render(). ' +
        'render() should be a pure function of props and state. It should ' +
        'never access something that requires stale data from the previous ' +
        'render, such as refs. Move this logic to componentDidMount and ' +
        'componentDidUpdate instead.',
        owner.getName() || 'A component'
      );
      owner._warnedAboutRefsInRender = true;
    }
  }
  if (componentOrElement == null) {
    return null;
  }
  if (componentOrElement.nodeType === 1) {
    return componentOrElement;
  }
  var inst = ReactInstanceMap.get(componentOrElement);
  if (inst) {
    inst = getNativeComponentFromComposite(inst);
    return inst ? ReactDOMComponentTree.getNodeFromInstance(inst) : null;
  }
  if (typeof componentOrElement.render === 'function') {
    invariant(
      false,
      'findDOMNode was called on an unmounted component.'
    );
  } else {
    invariant(
      false,
      'Element appears to be neither ReactComponent nor DOMNode (keys: %s)',
      Object.keys(componentOrElement)
    );
  }
}
function findDOMNode ( componentOrElement ) { if ( __DEV__ ) { var owner = ReactCurrentOwner . current ; if ( owner !== null ) { warning ( owner . _warnedAboutRefsInRender , '%s is accessing findDOMNode inside its render(). ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.' , owner . getName ( ) || 'A component' ) ; owner . _warnedAboutRefsInRender = true ; } } if ( componentOrElement == null ) { return null ; } if ( componentOrElement . nodeType === 1 ) { return componentOrElement ; } var inst = ReactInstanceMap . get ( componentOrElement ) ; if ( inst ) { inst = getNativeComponentFromComposite ( inst ) ; return inst ? ReactDOMComponentTree . getNodeFromInstance ( inst ) : null ; } if ( typeof componentOrElement . render === 'function' ) { invariant ( false , 'findDOMNode was called on an unmounted component.' ) ; } else { invariant ( false , 'Element appears to be neither ReactComponent nor DOMNode (keys: %s)' , Object . keys ( componentOrElement ) ) ; } }
Returns the DOM node rendered by this element.
Returns the DOM node rendered by this element .