MobX is a library that helps us to manage and mutate the state in a React application. In this section, we are going to understand the MobX architecture. We will also learn how to install and configure it, what its main components are, and its APIs.
Working with MobX
Understanding the MobX architecture
The MobX architecture introduces an entity known as the Store. A Store is an object that contains some state and provides access to some actions that allow us to mutate its internal state:
- The state is observable; this means that when its value changes, an event is emitted and other parts of the application can subscribe to state changes
- The actions allow us to mutate the current state