Migrating to Redux
This makes it easy to migrate both to and from Redux.We don't want to lock you in!
Reducers capture “the essence” of Flux Stores, so it's possible to gradually migrate an existing Flux project towards Redux, whether you are using , Alt, , or any other Flux library.
Your process will look like this:
This allows you to gradually rewrite every Flux Store in your app as a reducer, but still export so the rest of your app is not aware that this is happening and sees the Flux stores.
As you rewrite your Stores, you will find that you need to avoid certain Flux anti-patterns such as fetching API inside the Store, or triggering actions inside the Stores. Your Flux code will be easier to follow once you port it to be based on reducers!
Finally, you might want to begin using some Redux idioms like middleware to further simplify your asynchronous code.
From Backbone
Backbone's model layer is quite different from Redux, so we don't suggest mixing them. If possible, it is best that you rewrite your app's model layer from scratch instead of connecting Backbone to Redux. However, if a rewrite is not feasible, you may use to migrate gradually, and keep the Redux store in sync with Backbone models and collections.
If your Backbone codebase is too big for a quick rewrite or you don't want to manage interactions between store and models, use backbone-redux-migrator to help your two codebases coexist while keeping healthy separation. Once your rewrite finishes, Backbone code can be discarded and your Redux application can work on its own once you configure router.