UNPKG

334 BTypeScriptView Raw
1import { useEffect } from 'react';
2declare const _default: typeof useEffect;
3/**
4 * Is `useLayoutEffect` in a DOM or React Native environment, otherwise resolves to useEffect
5 * Only useful to avoid the console warning.
6 *
7 * PREFER `useEffect` UNLESS YOU KNOW WHAT YOU ARE DOING.
8 *
9 * @category effects
10 */
11export default _default;