Chapter 12. Redux beyond React

 

This chapter covers

  • Using Redux outside of a React web application
  • Implementing Redux in mobile and desktop applications
  • Using Redux in other web frameworks

JavaScript spaghetti code doesn’t discriminate against which frameworks it appears in. That’s one ailment applications across the framework spectrum have in common. Redux is most often billed as the cure to messy state management in React applications, but one of its major selling points is its compatibility with many JavaScript frameworks and environments. As long as bindings exist between Redux and the framework, you’re good to go.

Because of its value and flexibility, Redux bindings have appeared for many of the major JavaScript frameworks. Where Redux isn’t compatible, you’ll often find that Redux-inspired packages have been written to make the ideas and patterns accessible in that environment. Given the small size of the Redux API, writing the bindings for a new framework is a manageable workload.

To iterate an idea espoused throughout this book, it may be helpful to think of Redux as a design pattern first. The package you import from npm merely contains a few helpful methods to facilitate that design pattern in your application. You’ll be hard-pressed to find a client-side application where the design pattern can’t be applied.

12.1. Mobile Redux: React Native

12.2. Desktop Redux: Electron

12.3. Other Redux bindings

12.4. Redux without a framework

12.5. Exercise and solutions

Summary

sitemap