MCPcopy Create free account
hub / github.com/Lobos/react-ui / getNativeRootInstanceInContainer

Function getNativeRootInstanceInContainer

docs/lib/react.js:11267–11271  ·  view source on GitHub ↗
(container)

Source from the content-addressed store, hash-verified

11265}
11266
11267function getNativeRootInstanceInContainer(container) {
11268 var rootEl = getReactRootElementInContainer(container);
11269 var prevNativeInstance = rootEl && ReactDOMComponentTree.getInstanceFromNode(rootEl);
11270 return prevNativeInstance && !prevNativeInstance._nativeParent ? prevNativeInstance : null;
11271}
11272
11273function getTopLevelWrapperInContainer(container) {
11274 var root = getNativeRootInstanceInContainer(container);

Callers 1

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…