@tempots/dom
localStorageProp() function
Creates a prop that is backed by the localStorage or a MemoryStore.
Signature:
localStorageProp: <T>(options: StorageOptions<T>) => Prop<T>
Parameters
Parameter |
Type |
Description |
---|---|---|
options |
The options for creating the prop. |
Returns: Prop<T>
The created prop.