Public function

Signature
function useLocalStorageState<T = any>(
  key: string,
  defaultValue: T
): readonly [T, (setter: ((value: T) => T) | T) => void]
Parameters
NameDescription

key

string

defaultValue

T
Returns
readonly [T, (setter: ((value: T) => T) | T) => void]
Source

packages/tldraw/src/lib/ui/hooks/useLocalStorageState.ts

useKeyboardShortcutsSchemauseMenuClipboardEvents