The best way to learn about MobX is by using it in practice and seeing how it works. So, let's start by porting our ToDo application from Chapter 11, Migrating from React Class Components, to MobX. We start by copying the code example from Chapter11/chapter11_2/.
Handling state with MobX
Installing MobX
The first step is to install MobX and MobX React, via npm. Execute the following command:
> npm install --save mobx mobx-react
Now that MobX and MobX React are installed, we can start setting up the store.
Setting up the MobX store
After installing MobX, it is time...