- MobX Quick Start Guide
- Pavan Podila Michel Weststrate
- 69字
- 2021-08-05 10:34:25
Reactions
Reactions can really change the world for your app. They are the side-effect causing behaviors that react to the changes in observables. Reactions complete the core triad of MobX and act as the observers of the observables. Take a look at this diagram:

MobX gives you three different ways to express your reactions or side-effects. These are autorun(), reaction(), and when(). Let's see each of these in turn.