* Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent * instance, or null if the node was not rendered by this React.
(node)
| 1829 | * instance, or null if the node was not rendered by this React. |
| 1830 | */ |
| 1831 | function getInstanceFromNode$1(node) { |
| 1832 | var inst = node[internalInstanceKey]; |
| 1833 | if (inst) { |
| 1834 | if (inst.tag === HostComponent || inst.tag === HostText) { |
| 1835 | return inst; |
| 1836 | } else { |
| 1837 | return null; |
| 1838 | } |
| 1839 | } |
| 1840 | return null; |
| 1841 | } |
| 1842 | |
| 1843 | /** |
| 1844 | * Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding |