UNPKG

627 BJavaScriptView Raw
1"use strict";
2
3var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
5Object.defineProperty(exports, "__esModule", {
6 value: true
7});
8exports.default = void 0;
9
10var React = _interopRequireWildcard(require("react"));
11
12var _index = require("./index");
13
14var MockPortal = function MockPortal(_ref) {
15 var didUpdate = _ref.didUpdate,
16 children = _ref.children,
17 getContainer = _ref.getContainer;
18 React.useEffect(function () {
19 didUpdate();
20 getContainer();
21 });
22 return children;
23};
24
25var _default = (0, _index.generateTrigger)(MockPortal);
26
27exports.default = _default;
\No newline at end of file