@ray-core/runtime
Version:
Ray 是一个全新的基于 React 的小程序开发框架
16 lines (15 loc) • 489 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.createPortal = void 0;
var react_is_1 = require("react-is");
function createPortal(children, containerInfo, key) {
return {
// This tag allow us to uniquely identify this as a React Portal
$$typeof: react_is_1.Portal,
key: key || '',
children: children,
containerInfo: containerInfo,
implementation: null,
};
}
exports.createPortal = createPortal;