useWebStorage
Callable
Type parameters
- T
Parameters
key: string
initialValue: ExcludeFunction<T>
storage: Storage
optionaloptions: any
Returns readonly [name: T, methods: { resetStorage: () => void; setStorage: (value: React.SetStateAction<T>) => void }]