4 ms·
Rich from HipChat here. I haven't looked at all the various Flux libs out there, but since Facebook's initial announcement of Flux, they've made their example a
by rmanalan 12y ago
Rich from HipChat here. I haven't looked at all the various Flux libs out there, but since Facebook's initial announcement of Flux, they've made their example a bit more generic and it can actually be used as a starting point https://github.com/facebook/flux https://github.com/facebook/flux.
The big thing with flux is the dispatcher. You don't want to get into the habit of using your dispatcher as an event emitter. Once you have a proper Flux dispatcher, the rest falls into place.