reflux / refluxjs

A simple library for uni-directional dataflow application architecture with React extensions inspired by Flux
BSD 3-Clause "New" or "Revised" License
5.36k stars 330 forks source link

ES6 component ,If I had tow stores #503

Closed zaxlct closed 7 years ago

zaxlct commented 7 years ago

If I had tow stores,

class Store_A extends Reflux.Store {}
class Store_B extends Reflux.Store {}

class Counter extends Reflux.Component
{
    constructor(props) {
        super(props);
        this.state = {};
        this.store = xxx; // What should I do here?
    }

    render() {
        return xxx;
    }
}

thanks

FlorianWendelborn commented 7 years ago

this.stores = [Store_A, Store_B]

zaxlct commented 7 years ago

Thanks