@restart/hooks
Version:
A set of utility and general-purpose React hooks.
12 lines (11 loc) • 334 B
TypeScript
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;