* Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent * instance, or null if the node was not rendered by this React.
(node)
| 7395 | * instance, or null if the node was not rendered by this React. |
| 7396 | */ |
| 7397 | function getInstanceFromNode(node) { |
| 7398 | var inst = getClosestInstanceFromNode(node); |
| 7399 | if (inst != null && inst._nativeNode === node) { |
| 7400 | return inst; |
| 7401 | } else { |
| 7402 | return null; |
| 7403 | } |
| 7404 | } |
| 7405 | |
| 7406 | /** |
| 7407 | * Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding |
nothing calls this directly
no test coverage detected
searching dependent graphs…