localstorage-var
v2.0.0
Published
Implementation of the simple-events variable interface using localStorage
Downloads
1
Readme
LocalStorage Var
Implementation of the mini-events variable interface using localStorage
Usage
Call the exported function with a string key to get a function
which has the same type as variable
from mini-events.
const [set, { get, changed }] = localStorageVar('myState')('initialState')
See @lbfalvy/mini-events for examples on how to use the variable interface.