Guide
Links
Core
Add-ons
Versions
Appearance
Runs a callback when the component unmounts.
import { useUnmount } from '@reause/shared' useUnmount(() => cleanup())
export function useUnmount(fn: () => any): void
Source · Demo · react-use
v0.1.0
c380f