UNPKG

beautiful-react-hooks

Version:

A collection of beautiful (and hopefully useful) React hooks to speed-up your components and hooks development

9 lines (8 loc) 284 B
import { type DependencyList, type EffectCallback } from 'react'; /** * A hook that runs an effect after the first render. * @param callback * @param deps */ declare const useUpdateEffect: (callback: EffectCallback, deps?: DependencyList) => void; export default useUpdateEffect;