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

Function createPortal$1

code/composition/public/app.js:14358–14371  ·  view source on GitHub ↗
(children, containerInfo,
// TODO: figure out the API for cross-renderer implementation.
implementation)

Source from the content-addressed store, hash-verified

14356var reactReconciler = ReactFiberReconciler$3['default'] ? ReactFiberReconciler$3['default'] : ReactFiberReconciler$3;
14357
14358function createPortal$1(children, containerInfo,
14359// TODO: figure out the API for cross-renderer implementation.
14360implementation) {
14361 var key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
14362
14363 return {
14364 // This tag allow us to uniquely identify this as a React Portal
14365 $$typeof: REACT_PORTAL_TYPE,
14366 key: key == null ? null : '' + key,
14367 children: children,
14368 containerInfo: containerInfo,
14369 implementation: implementation
14370 };
14371}
14372
14373// TODO: this is special because it gets imported during build.
14374

Callers 1

createPortalFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected