@patternfly/react-core
Version:
This library provides a set of common React components for use with the PatternFly reference implementation.
7 lines • 305 B
JavaScript
import { useEffect, useLayoutEffect } from 'react';
import { canUseDOM } from './util';
/**
* Small wrapper around `useLayoutEffect` to get rid of the warning on SSR envs
*/
export const useIsomorphicLayoutEffect = canUseDOM ? useLayoutEffect : useEffect;
//# sourceMappingURL=useIsomorphicLayout.js.map