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

Function createPortal

code/third-party/public/app.js:17105–17111  ·  view source on GitHub ↗
(children, container)

Source from the content-addressed store, hash-verified

17103}
17104
17105function createPortal(children, container) {
17106 var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
17107
17108 !isValidContainer(container) ? invariant(false, 'Target container is not a DOM element.') : void 0;
17109 // TODO: pass ReactDOM portal implementation as third argument
17110 return createPortal$1(children, container, null, key);
17111}
17112
17113var ReactDOM = {
17114 createPortal: createPortal,

Callers

nothing calls this directly

Calls 3

isValidContainerFunction · 0.70
invariantFunction · 0.70
createPortal$1Function · 0.70

Tested by

no test coverage detected