UNPKG

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