useLocalStorageState

See source code
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]
Prev
useKeyboardShortcuts
Next
useMenuClipboardEvents