UNPKG

rooks

Version:

Essential React custom hooks ⚓ to super charge your components!

11 lines 363 B
type Callback = () => void; /** * useWillUnmount hook * Fires a callback just before component unmounts * * @param {Function} callback Callback to be called before unmount * @see https://rooks.vercel.app/docs/useWillUnmount */ declare function useWillUnmount(callback: Callback): void; export { useWillUnmount }; //# sourceMappingURL=useWillUnmount.d.ts.map