MCPcopy Create free account
hub / github.com/reactjs/react-rails / createPortal$1

Function createPortal$1

lib/assets/react-source/development/react.js:28636–28648  ·  view source on GitHub ↗
(children, container)

Source from the content-addressed store, hash-verified

28634 setBatchingImplementation(batchedUpdates$1, discreteUpdates$1, flushDiscreteUpdates, batchedEventUpdates$1);
28635
28636 function createPortal$1(children, container) {
28637 var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
28638
28639 if (!isValidContainer(container)) {
28640 {
28641 throw Error( "Target container is not a DOM element." );
28642 }
28643 } // TODO: pass ReactDOM portal implementation as third argument
28644 // $FlowFixMe The Flow type is opaque but there's no way to actually create it.
28645
28646
28647 return createPortal(children, container, null, key);
28648 }
28649
28650 function renderSubtreeIntoContainer(parentComponent, element, containerNode, callback) {
28651

Callers 1

unstable_createPortalFunction · 0.85

Calls 2

isValidContainerFunction · 0.85
createPortalFunction · 0.85

Tested by

no test coverage detected