GoScrobble/web/node_modules/@restart/hooks/esm/useIsomorphicEffect.d.ts

12 lines
334 B
TypeScript
Raw Normal View History

2022-04-25 02:47:15 +00:00
import { useEffect } from 'react';
declare const _default: typeof useEffect;
/**
* Is `useLayoutEffect` in a DOM or React Native environment, otherwise resolves to useEffect
* Only useful to avoid the console warning.
*
* PREFER `useEffect` UNLESS YOU KNOW WHAT YOU ARE DOING.
*
* @category effects
*/
export default _default;