rooks
Version:
Essential React custom hooks ⚓ to super charge your components!
11 lines • 380 B
TypeScript
declare type Callback = () => void;
/**
* useWillUnmount hook
* Fires a callback just before component unmounts
*
* @param {Function} callback Callback to be called before unmount
* @see https://react-hooks.org/docs/useWillUnmount
*/
declare function useWillUnmount(callback: Callback): void;
export { useWillUnmount };
//# sourceMappingURL=useWillUnmount.d.ts.map