Initial commit
This commit is contained in:
16
node_modules/react-overlays/lib/utils/getContainer.js
generated
vendored
Normal file
16
node_modules/react-overlays/lib/utils/getContainer.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = getContainer;
|
||||
|
||||
var _reactDom = require('react-dom');
|
||||
|
||||
var _reactDom2 = _interopRequireDefault(_reactDom);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
function getContainer(container, defaultContainer) {
|
||||
container = typeof container === 'function' ? container() : container;
|
||||
return _reactDom2.default.findDOMNode(container) || defaultContainer;
|
||||
}
|
||||
module.exports = exports['default'];
|
||||
Reference in New Issue
Block a user