October 2019
Intermediate to advanced
426 pages
11h 49m
English
MobX takes a different approach than Redux. Rather than applying restrictions to make state changes predictable, it aims to automatically update anything that is derived from the application state. Rather than dispatching actions, in MobX we can directly modify the state object and MobX will take care of updating anything that uses the state.
The MobX life cycle works as follows:
@action onClick = () => { this.props.todo.completed = true}
@observable todos = [ { title: ...Read now
Unlock full access