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

Function createPortal

lib/assets/react-source/development/react.js:28605–28616  ·  view source on GitHub ↗
(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.
	implementation)

Source from the content-addressed store, hash-verified

28603 }
28604
28605 function createPortal(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.
28606 implementation) {
28607 var key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
28608 return {
28609 // This tag allow us to uniquely identify this as a React Portal
28610 $$typeof: REACT_PORTAL_TYPE,
28611 key: key == null ? null : '' + key,
28612 children: children,
28613 containerInfo: containerInfo,
28614 implementation: implementation
28615 };
28616 }
28617
28618 var ReactVersion = '16.14.0';
28619

Callers 1

createPortal$1Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected