MCPcopy Index your code
hub / github.com/react/react / isValidContainer

Function isValidContainer

packages/react-dom-bindings/src/client/ReactDOMContainer.js:19–29  ·  view source on GitHub ↗
(node: any)

Source from the content-addressed store, hash-verified

17} from './HTMLNodeType';
18
19export function isValidContainer(node: any): boolean {
20 return !!(
21 node &&
22 (node.nodeType === ELEMENT_NODE ||
23 node.nodeType === DOCUMENT_NODE ||
24 node.nodeType === DOCUMENT_FRAGMENT_NODE ||
25 (!disableCommentsAsDOMContainers &&
26 node.nodeType === COMMENT_NODE &&
27 (node: any).nodeValue === ' react-mount-point-unstable '))
28 );
29}

Callers 7

renderFunction · 0.90
unmountComponentAtNodeFunction · 0.90
ReactDOMRoot.jsFile · 0.90
createRootFunction · 0.90
hydrateRootFunction · 0.90
createPortalFunction · 0.90
createPortalFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected