@atlaskit/motion
Version:
A set of utilities to apply motion in your application.
11 lines (10 loc) • 358 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.useLayoutEffect = void 0;
var _react = require("react");
/**
* Needed to supress the SSR warning when running use layout effect on the server.
*/
var useLayoutEffect = exports.useLayoutEffect = typeof window === 'undefined' ? _react.useEffect : _react.useLayoutEffect;