7.14.1
Search
Ctrl + K
theming
styles
guides
mantine hooks
UI and Dom
State management
Utilities
Lifecycle
mantine form
mantine core
mantine dates
mantine charts
extensions
changelog
Returns true if the component is mounted
Import
import { useMounted } from '@mantine/hooks';
Source
Docs
Package
useMounted hook returns true if component is mounted and false if it's not.
useMounted
true
false
import { useMounted } from '@mantine/hooks'; function Demo() { const mounted = useMounted(); return ( <div> {mounted ? 'Component is mounted' : 'Component is not mounted'} </div> ); }
function useMounted(): boolean;
Previous
use-logger
Next
use-shallow-effect
Build fully functional accessible web applications faster than ever
About
Community
Project
Built by Vitaly Rtishchev and these awesome people