useLocalStorageState
function useLocalStorageState<T = any>(
key: string,
defaultValue: T
): readonly [T, (setter: ((value: T) => T) | T) => void]
Parameters
Name | Description |
---|---|
|
|
|
|
Returns
readonly [T, (setter: ((value: T) => T) | T) => void]
function useLocalStorageState<T = any>(
key: string,
defaultValue: T
): readonly [T, (setter: ((value: T) => T) | T) => void]
Name | Description |
---|---|
|
|
|
|
readonly [T, (setter: ((value: T) => T) | T) => void]