securityos/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs

7 lines
213 B
JavaScript
Raw Permalink Normal View History

2024-09-06 15:32:35 +00:00
import { useLayoutEffect, useEffect } from 'react';
import { isBrowser } from './is-browser.mjs';
const useIsomorphicLayoutEffect = isBrowser ? useLayoutEffect : useEffect;
export { useIsomorphicLayoutEffect };