MobX

Joe Buza

What is MobX?

Simple, scalable state management

Why MobX?

  • Simple

  • Unopinionated

  • Performant

  • Unobstructive

Philosophy

Anything that can be derived from the application state, should be derived. Automatically.

Core Concepts

  • Observables

  • Computed

  • Actions

  • Transactions

  • Reactions

Principles

  • ACTION -> STATE -> VIEWS

  • Synchronous

  • Computed values are lazy

  • Computed values should be pure. Can not change state.

Observables

Resources

  • https://www.youtube.com/watch?v=XGwuM_u7UeQ

  • http://mobxjs.github.io/mobx/

Questions?

Intro to MobX

By Joe Buza

Intro to MobX

MobX is a state management library like Redux, with the aim of making state changes simple and scalable

  • 880