'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var React = require('react');
var canUseDOM = require('../utils/canUseDOM.js');

/**
 * Runs effect safely on server.
 */
var useIsomorphicLayoutEffect = canUseDOM.canUseDOM ? React.useLayoutEffect : React.useEffect;

exports.useIsomorphicLayoutEffect = useIsomorphicLayoutEffect;
