Content
useIsMounted
A custom React hook that returns a function to check if the component is currently mounted.
useIsMounted
Usage
API
useIsMounted
Returns a function that returns a boolean indicating whether the component is currently mounted.
Returns
Name | Type | Description |
---|---|---|
isMounted | () => boolean | A function that returns a boolean indicating whether the component is currently mounted. |