July 2018
Beginner
236 pages
5h 34m
English
The UI as we know is a side effect in MobX and is identified by the use of observer() decorators on the React components. These observers can read observables in the render() method, which sets up the tracking. Any time those observables change, MobX will re-render the component. This automatic behavior with minimal ceremony is very powerful and allows us to create granular components that react to fine-grained observable state.
In our example, we do have some granular observer components, namely the input fields, the enroll button, and the app component. They are marked by orange boxes in the following component tree:

Each ...
Read now
Unlock full access