MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / isValidContainer

Function isValidContainer

code/new-context-api/public/app.js:16855–16857  ·  view source on GitHub ↗

* True if the supplied DOM node is a valid node element. * * @param {?DOMElement} node The candidate DOM node. * @return {boolean} True if the DOM is a valid DOM node. * @internal

(node)

Source from the content-addressed store, hash-verified

16853 * @internal
16854 */
16855function isValidContainer(node) {
16856 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 '));
16857}
16858
16859function getReactRootElementInContainer(container) {
16860 if (!container) {

Callers 3

createPortalFunction · 0.70
app.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected