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) • 333 B
TypeScript
import { type GenericFunction } from "./shared/types";
/**
* Returns a callback setter for a callback to be performed when the component did unmount.
*/
declare const useUnmount: <TCallback extends GenericFunction>(callback?: TCallback | undefined) => import("./shared/types").CallbackSetter<undefined>;
export default useUnmount;