Chapter 4: Adopting State Management Approaches from React
In the previous chapter, we learned about the most widely used state management approaches for Flutter apps and their slight variations. You can create almost all sorts of apps using what we have learned so far. But if you are coming from a React background, this chapter is for you.
This chapter focuses on two famous architectures that are adopted and inspired by the React framework. One of the techniques lets you manage your state in a single place inside your application, while the other one uses commands to autogenerate state management code so that you can solely focus on connecting your UI with your data. The following are these two techniques:
- Redux – One place for all states
- MobX – Observables and reactions
Let's understand what these two are and then dive into sample counterexamples of each of them.