voronianski / flux-comparison

:pencil: Practical comparison of different Flux solutions
https://labs.voronianski.dev/flux-comparison/
2.79k stars 214 forks source link

Add Redux + Flambeau example #68

Closed RoyalIcing closed 8 years ago

RoyalIcing commented 8 years ago

Hi, I have create a library for declarative actions and reducers called Flambeau, which fits nicely on top of Redux.

The idea is to try and rely on declarative code as much as possible. Action creator functions are namespaces into sets, which reducers then match up to by declaring plain objects with functions with matching names, removing the need for UPPERCASE_CONSTANTS. Actions self-document their payload using destructured objects.

Actions sets let reducers compose easily, by allowing any dispatched action from a particular set to be forwarded to another reducer.

Asynchronous actions can query reducers by the use of introspection methods (like a protocol or interface in other languages), which decouples the action creator from having any knowledge of the state tree.

voronianski commented 8 years ago

@BurntCaramel thanks, next time before PR please make sure that your code is linted properly - https://github.com/voronianski/flux-comparison/blob/master/CONTRIBUTING.md

RoyalIcing commented 8 years ago

Oh thanks! I tried to run lint, but it was coming up with an error Cannot find module 'eslint-plugin-react' – does that have to be installed globally?

voronianski commented 8 years ago

@BurntCaramel yeah, probably that was the case of error. I've just added it to dev deps. :+1: