MCPcopy Create free account
hub / github.com/reactjs/react-rails / isValidContainer

Function isValidContainer

lib/assets/react-source/development/react.js:28334–28336  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

28332 return new ReactDOMBlockingRoot(container, LegacyRoot, options);
28333 }
28334 function isValidContainer(node) {
28335 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 '));
28336 }
28337
28338 var ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner;
28339 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