- 授权协议: BSD
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: https://github.com/yahoo/fluxible
软件介绍
Fluxible 是用于 Flux 应用的可插拔容器。
特征:
服务器可免费使用单体模式进行渲染
无状态异步操作
便于集成的高阶组件
增强磁通流动
可在 Flux 内容上增加你的接口
更新至 React 0.13
示例代码:
import Fluxible from 'fluxible';
import React from 'react';
import {connectToStores, createStore, provideContext} from 'fluxible/addons';
// Action
const action = (actionContext, payload) => {
actionContext.dispatch('FOO_ACTION', payload);
};
// Store
const FooStore = createStore({
storeName: 'FooStore',
handlers: {
'FOO_ACTION': 'fooHandler'
},
initialize: () => { // Set the initial state
this.foo = null;
},
fooHandler: (payload) => {
this.foo = payload;
},
getState: () => {
return {
foo: this.foo
}
}
});
Learn Python the Hard Way
Zed A. Shaw / Addison-Wesley Professional / 2013-10-11 / USD 39.99
Master Python and become a programmer-even if you never thought you could! This breakthrough book and CD can help practically anyone get started in programming. It's called "The Hard Way," but it's re......一起来看看 《Learn Python the Hard Way》 这本书的介绍吧!
