How to manage state?
State in MobX is represented by any observable object. You can use any of the mentioned approaches in the linked document.
For advanced and more robust state, the better choice might be .
Accessing a state
The second important aspect of state management is how to pass created observables around the component tree. There is no MobX related logic, but it's certainly worth mentioning here.
For a more robust state management, it's recommended over the legacy inject.
It's possible to keep application state in global variables that would get imported in component files. It will work in most cases.