【文件属性】:
文件名称:react-flux:React通量
文件大小:6KB
文件格式:ZIP
更新时间:2021-07-16 15:53:48
JavaScript
react-flux - Flux 架构的实现
该项目是一组工具,用于帮助开发具有 Flux 架构的 React 应用程序。
##Build 项目正在开发中,使用前需要构建源码。
npm update
grunt build
##创建商店
var todoStore = Flux.createStore({init: function() {
console.log("init function")
}});
##创建动作
var action = new Action();
action.dispatch("create-todo", {data: 'update react'});
##数据流(测试)
var action = new Action();
var todoStore = Flux.createStore({init: function() {
【文件预览】:
react-flux-master
----.gitignore(71B)
----gruntfile.js(1KB)
----package.json(364B)
----src()
--------flux.action.js(186B)
--------promise.js(1KB)
--------dispatcher.js(3KB)
--------flux.store.js(828B)
--------flux.js(584B)
----LICENSE(1KB)
----README.md(1KB)
----example()
--------index.html(1KB)