Applying the principles of MobX can seem daunting when you first start using it. To help you with this process, we are gong to tackle two non-trivial examples of using the MobX triad of observables-actions-reactions. We will cover the modeling of the observable state, and then identify the actions and the reactions that track the observables. Once you go through these examples, you should be able to make the mental shift in tackling state management with MobX.
The examples we will cover in this chapter include the following:
- Form validation
- Page routing