Deep Storage provides observable state for reactive applications in JavaScript.
Key features
- Simple to use observable state management
- Optimised for use with React
- No global state
- Simple way to manage shared state with or without a fully fledged flux pattern
Documentation
Real World Example
See a Real World Example of deep storage react.
Demo here.
TodoMVC
See an implementation of TodoMVC that uses Deep Storage.
Installing
npm install deep-storage # or yarn add deep-storage
The gist of Deep Storage
1. Create a new Deep Storage instance and initialise its state
; const storage = ;
2. Create a view that responds to changes in state
; Component { return <button onClick=thisonReset> Seconds passed: thispropstimer </button> ; } { thisprops; }; const DeepTimerView = ; ReactDOM;
3. Modify the State
{ storage;} ;