Reduction Sauce
Motivation
I have worked on large react redux projects, which all suffered from similar problems.
- The largest problem was the reducer organization. Often reducers started with pure intentions, and were incrementally hijacked for view logic. The additions were small, just a couple Boolean variables here or there. Soon other views would begin depending on them. This is a problem because it implicitly binds views together and makes things hard to re-factor.
- Another issue is that reducers can add a bit of boilerplate. Being the lazy programmers that we are, we have a tendency to tack on to whatever reducer was close enough to handle the view logic.
Reduction Sauce addresses both of these issues.
- Automatically connecting a view with it's reducer removes the potential of creating dependencies.
- Creating a unique reducer for each view removes the urge to tack on view logic into places it shouldn't be.
Inspirations
This library was heavily inspired/influenced by redux-forms