MCPcopy Create free account
hub / github.com/microsoft/SandDance / isValidContainer

Function isValidContainer

docs/external/js/react-dom.development.js:24774–24776  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

24772 return new ReactDOMBlockingRoot(container, LegacyRoot, options);
24773 }
24774 function isValidContainer(node) {
24775 return !!(node && (node.nodeType === ELEMENT_NODE || node.nodeType === DOCUMENT_NODE || node.nodeType === DOCUMENT_FRAGMENT_NODE || node.nodeType === COMMENT_NODE && node.nodeValue === ' react-mount-point-unstable '));
24776 }
24777
24778 var ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner;
24779 var topLevelUpdateWarnings;

Callers 5

hydrateFunction · 0.85
renderFunction · 0.85
unmountComponentAtNodeFunction · 0.85
createPortal$1Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected