15 lines
687 B
JavaScript
15 lines
687 B
JavaScript
(function (global, factory) {
|
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react')) :
|
|
typeof define === 'function' && define.amd ? define(['react'], factory) :
|
|
(global = global || self, global.usePassiveLayoutEffect = factory(global.React));
|
|
}(this, (function (React) { 'use strict';
|
|
|
|
React = React && Object.prototype.hasOwnProperty.call(React, 'default') ? React['default'] : React;
|
|
|
|
var usePassiveLayoutEffect = React[typeof document !== 'undefined' && document.createElement !== void 0 ? 'useLayoutEffect' : 'useEffect'];
|
|
|
|
return usePassiveLayoutEffect;
|
|
|
|
})));
|
|
//# sourceMappingURL=use-passive-layout-effect.dev.js.map
|