var state = {
eventId: 1000,
eventName: "2015 Governor's Gala",
tables: {
...
}
};
function setEventName(name) {
state.eventName = name;
};
React.render(
<App
state={state}
setEventName={setEventName}/>,
document.getElementById("app")
);I can't write this one simply.var Store extends EventEmitter = {
eventId: 1000,
eventName: "2015 Governor's Gala",
tables: {...},
setState: function() {
this.emit("change", this);
}};
var actions = {
updateEventName: function(payload){...},
addTable: function(payload){...}};
var store = new Store();
store.on("change", function(state) {
React.render(
<App
state={state}
actions={actions}/>,
document.getElementById("app");};ReFlux
Flummox
Fluxxor
Flux This
Material Flux
Fluxible
Fluxy
Alt
Delorean
MartyJS
McFly
Lux
omniscientjs
ReFlux
Flummox
Fluxxor
Flux This
Material Flux
Fluxible
Fluxy
Alt
Delorean
MartyJS
McFly
Lux
omniscientjs
ReFlux
Flummox
Fluxxor
Flux This
Material Flux
Fluxible
Fluxy
Alt
Delorean
MartyJS
McFly (biffy fork)
Lux
omniscientjs
ReFlux
Flummox
Fluxxor
Flux This
Material Flux
Fluxible
Fluxy
Alt
Delorean
MartyJS
McFly (biffy fork)
Lux
omniscientjs
ReFlux
Flummox
Fluxxor
Flux This
Material Flux
Fluxible
Fluxy
Alt
Delorean
MartyJS
McFly (biffy fork)
Lux
omniscientjs