UNPKG

beautiful-react-hooks

Version:

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

7 lines (6 loc) 351 B
import { type GenericFunction, type Noop } from './shared/types'; /** * Returns a callback setter for a function to be performed when the component did mount. */ declare const useDidMount: <TCallback extends GenericFunction = Noop>(callback?: TCallback | undefined) => import("./shared/types").CallbackSetter<undefined>; export default useDidMount;