useIsMounted
Returns a function to check if the component is currently mounted.
useIsMounted
Installation
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. |