Skip to content
Function

useIsMounted

Callback that reports whether the component is still mounted.

See useIsMounted with a live demo

@danixsoft/hooks


useIsMounted(): () => boolean

Returns

() => boolean