Appearance
useMounted
Mounted state in ref.
Demo
Usage
tsx
import { useMounted } from '@reause/core'
const isMounted = useMounted() // boolean
// starts `false`, flips to `true` in a mount effect — stays `false` during SSR/hydrationType Declarations
ts
export function useMounted(): boolean