Repozytorium Web Developera

React MobX

Useful links

Recommended MobX learning path for beginners:

  1. Read of Github repo
  2. Not necessary (in Polish) post na blogu o MobX
  3. Not necessary (in Polish) post o połączeniu React i MobX - router
  4. Ten minute introduction to MobX and React
  5. Not necessary article on Medium about core concept of MobX by it author Michel Weststrate
  6. Not necessary presentation by Michel Weststrate "Michel Weststrate: Real World MobX — ReactNext 2016"
  7. Egghead course Manage Complex State in React Apps with MobX
  8. Mobx tutorial at

React MobX

MobX with create-react-app

create-react-app doesn't support decorators. MobX can be used without them but development is faster and easier with them. Here you can find instructions how to enable decorators in the package:

If you don't want to use decorators, here you can find an example of an app with using MobX and standard syntax:

React + MobX + Router example

If you want to start development with this stack, I suggest you to start from understanding below boilerplate:

Local state of components with MobX

While using React.setState you have to remember about it asynchronicity. Next state while using setState without callback shouldn't be dependent on previous state. Moreover, you cannot change local state if component isn't mounted.

MobX forms

I haven't read but this can be good article about forms in MobX: