Skip to content
zenui/react-hooks

useIsMounted

Returns a function that reports whether the component is still mounted. Check it after async work before updating state or starting follow-up work.

Level
Basic
Since
v2.1.0
import {useIsMounted} from '@zenuilabs/react-hooks';
Loading demo_

More in Utilities