MobX
“MobX is a battle tested library that makes state
management simple and scalable by transparently
applying functional reactive programming”
MobX docs
Actions State Views
Modify Updates
Σ
Everything Should Be Derived
Automatically
Define derivations & reactions
MobX ensures efficiency & consistency
Decorators (ES.next)
@doSomething
myFunction () {
}
doSomething( myFunction () {
})
@action
@observable
enables MobX to observe your data
@observer
MobX ensures that this component is consistent with the state
@computed
MobX ensures that this value is consistent with the state
@observable
Observable values can be:
● Observable Map
● Observable Array
● Observable Object
● Boxed Observable
@computed
reactively produce a value that can be used by other observers
Autorun
useStrict(false)
mobx-react
Create observer View
mobx-react-devtools
Demo

Academy PRO: Advanced React Ecosystem. MobX