react-webstorage
Use any implementation of W3C WebStorage API directly as a React/Flux-style store.
var WebStorage = dispatcher = ; var webStorage = windowlocalStorage || windowsessionStorage /* or poly-fill thereof */; dispatcher; // Later, inside a component... { return foo: webStorage; ; } { this; } { webStorage; } { webStorage; }
WebStorage Instance implements the WebStorage API, and in cases where the contents of WebStorage is modified (setItem, removeItem, clear) fires a change
event to registered listeners.
WebStorage API details here: https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API