助焊剂
另一个面向客户端和服务器端的商店。
安装
Node.js
npm install fluxstore
凉亭
bower install fluxstore
用法
var FluxStore = require ( 'fluxstore' ) ; // Node.js.
// For browser script tag: include the file from the dist/ folder.
// Init FluxStore with the dispatcher. It returns Store constructor.
var dispatcher = new require ( 'flux' ) . Dispatcher ( ) ;
var Store = FluxStore ( dispatcher ) ;
// Create a new store
1