What is MobX action?

An action is any piece of code that modifies the state . In principle, actions always happen in response to an event. For example, a button was clicked, some input changed, a websocket message arrived, etc. MobX requires that you declare your actions, although makeAutoObservable can automate much of this job.

Read more

Why do you need MobX?

“MobX is a battle tested library that makes state management simple and scalable by transparently applying functional reactive programming (TFRP) .” Simplicity as well as the freedom to scale whenever necessary is the key to why MobX is indeed one of the best state management tools.

Read more

Why you should not use MobX?

MobX does not provide any restrictions on how new states can be derived from old ones . It’s more of a Data flow library as its creator likes to call it. MobX helps us set up Reactivity outside React components. This way view components can be kept free of logic.

Read more