Skip to content
Function

useUnmount

Run a function exactly once, on unmount.

See useUnmount with a live demo

@danixsoft/hooks


useUnmount(callback): void

Parameters

callback

() => void

Returns

void