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) 324 B
import { GenericFunction, 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) => import("./shared/types").CallbackSetter<void>; export default useDidMount;