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

Function createPortal

code/styling/public/app.js:17872–17878  ·  view source on GitHub ↗
(children, container)

Source from the content-addressed store, hash-verified

17870}
17871
17872function createPortal(children, container) {
17873 var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
17874
17875 !isValidContainer(container) ? invariant(false, 'Target container is not a DOM element.') : void 0;
17876 // TODO: pass ReactDOM portal implementation as third argument
17877 return createPortal$1(children, container, null, key);
17878}
17879
17880var ReactDOM = {
17881 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