What are reactions in MobX?

Reactions are an important concept to understand, as it is where everything in MobX comes together. The goal of reactions is to model side effects that happen automatically . Their significance is in creating consumers for your observable state and automatically running side effects whenever something relevant changes.

Read more

What is observable in MobX React?

In The gist of MobX you have already seen the most important part of this integration: the observer HoC that you can wrap around a React component . observer is provided by a separate React bindings package you choose during installation. In this example, we’re going to use the more lightweight mobx-react-lite package.

Read more

What is MobX?

MobX is a simple, scalable, boilerplate-free state management solution . It allows you to manage application state outside of any UI framework, making the code decoupled, portable and, above all, easy to test. It implements observable values, which are essentially using the publish/subscribe pattern.

Read more

What is a store in MobX?

Stores can be found in any Flux architecture and can be compared a bit with controllers in the MVC pattern. The main responsibility of stores is to move logic and state out of your components into a standalone testable unit that can be used in both frontend and backend JavaScript.

Read more