MCPcopy Create free account
hub / github.com/microsoft/SandDance / createPortal

Function createPortal

docs/external/js/react-dom.development.js:25045–25056  ·  view source on GitHub ↗
(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.
  implementation)

Source from the content-addressed store, hash-verified

25043 }
25044
25045 function createPortal(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.
25046 implementation) {
25047 var key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
25048 return {
25049 // This tag allow us to uniquely identify this as a React Portal
25050 $$typeof: REACT_PORTAL_TYPE,
25051 key: key == null ? null : '' + key,
25052 children: children,
25053 containerInfo: containerInfo,
25054 implementation: implementation
25055 };
25056 }
25057
25058 var ReactVersion = '16.13.1';
25059

Callers 1

createPortal$1Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected