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?

Made with Slides.com