Flux 应用可插拔容器 Fluxible

码农软件 · 软件分类 · 高性能网络开发库 · 2019-09-01 07:26:33

软件介绍

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
        }
    }
});

本文地址:https://codercto.com/soft/d/13618.html

Learn Python the Hard Way

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》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码