Files
personal_site/frontend/node_modules/@restart/hooks/esm/useIsomorphicEffect.d.ts
T

12 lines
334 B
TypeScript

import { useEffect } from 'react';
/**
* 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
*/
declare const _default: typeof useEffect;
export default _default;