What will MobX-React to?

MobX reacts to any existing observable property that is read during the execution of a tracked function . “reading” is dereferencing an object’s property, which can be done through “dotting into” it (eg. user.name ) or using the bracket notation (eg. user[‘name’] , todos[3] ) or destructuring (eg.

Read more

How do you use MobX in React?

Create a new React app The above command will bootstrap the application and install the dependencies. We can use cd mobx-react to go into the folder . Now, inside of the src folder, we can create a folder for our components, create a PetList component inside the folder, and open the file in your favorite editor.

Read more