Fluxive
Flux-like MVB(MVVM) Library
Installation
npm install fluxive
Difference between Fluxive and Flux
Flux defines data flow as:
Action → Dispatcher → Store → View → Action → ...
But, Fluxive defines data flow as:
(Model)
↓
Action → Binder → View → Action → ...
Notice:
- Binder is
Dispacher
, and alsoStore
in Flux. - Model is maybe unnecessary, but if you feel data store becoming more complex, you can use Model to solve its complexity.
Simple example
Create Action
let fooAction = Fluxive;
Create Binder
Binder { super; thisstate = fooInfo: 'initial foo' ; this; }
Create View
Component { superprops; this; } { let binder = this; return <p>Foo info: binder</p> ; }
More details
Preparing
LICENSE
MIT