useClipboard
Copy text to the clipboard.
import { useClipboard } from '@/hooks';Clipboard, document title, lifecycle helpers, fullscreen, and more.
useClipboardCopy text to the clipboard.
import { useClipboard } from '@/hooks';useCopyToClipboardAlias of useClipboard.
import { useCopyToClipboard } from '@/hooks';useDidMountRun once after mount.
import { useDidMount } from '@/hooks';useDidUpdateEffect that skips first render.
import { useDidUpdate } from '@/hooks';useDocumentTitleSet document.title.
import { useDocumentTitle } from '@/hooks';useFaviconUpdate the favicon href.
import { useFavicon } from '@/hooks';useFirstMountStatetrue only on the first render.
import { useFirstMountState } from '@/hooks';useFullscreenEnter/exit fullscreen.
import { useFullscreen } from '@/hooks';useIsMountedStable () => boolean mounted flag.
import { useIsMounted } from '@/hooks';useIsomorphicLayoutEffectLayout effect that works under SSR.
import { useIsomorphicLayoutEffect } from '@/hooks';useLatestAlways-current ref — kills stale closures.
import { useLatest } from '@/hooks';useMemoizedFnAlias of useStableCallback.
import { useMemoizedFn } from '@/hooks';useMountedtrue after the component mounts.
import { useMounted } from '@/hooks';usePageTitleAlias of useDocumentTitle.
import { usePageTitle } from '@/hooks';useStableCallbackStable function identity that calls the latest fn.
import { useStableCallback } from '@/hooks';useTextSelectionTrack current text selection.
import { useTextSelection } from '@/hooks';useUnmountRun a callback on unmount.
import { useUnmount } from '@/hooks';useUpdateForce a re-render from anywhere in the component.
import { useUpdate } from '@/hooks';useUpdateEffectAlias of useDidUpdate pattern.
import { useUpdateEffect } from '@/hooks';