Value Oriented Programming
MobX is also about Value Oriented Programming (VOP), where you focus on the change in values, its dependencies, and its propagation across the reactive system. With VOP, you focus on What are the connected values? rather than the How are the values connected? Its counterpart is Event Oriented Programming (EOP), where you focus on a stream of events to notify changes. Events only report what has happened with no notion of dependencies. It's at a lower level conceptually, compared to Value-Oriented-Programming.
VOP relies on events to do its job internally. When a value changes, events are raised to notify the change. The handlers for these events will then propagate the value to all listeners (observers) of that ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access