There are many ways to manage state in React. Redux, while being the most popular solution, is not always the best option for work.
In this book, you will get familiar with MobX - a simple and efficient library that allows you to neatly organize complex domain models into objects and classes. Code examples will be written in TypeScript to get all the benefits of a strongly typed language.
Structurally, the book chapters can be divided into three major blocks. The first block introduces the reader to the basic concepts of MobX, such as observable objects, actions, and reactions. The second block sequentially describes building real applications with MobX including routing, forms, and tests. The third block describes advanced topics for in-depth understanding of MobX.
Egor Gorbachev - full-stack developer, member of the MobX core team, author of articles on MobX and TypeScript. Winner of developer contests from Telegram. GitHub.
Nazim Gafarov - MobX popularizer. Has worked in both startups and large companies (Yandex, Mail) as a lead developer. Regularly speaks at IT conferences, including HolyJS and React Moscow. GitHub.
We greatly appreciate the support of the book. Thanks to those who help with writing and give more motivation to continue:
- Igor «InoY» Zvyagintsev (@inoyakaigor)
- Sergey Sibara (@sergeysibara)
- Yuri Mikhin (@mikhin)
All content is licensed under the Creative Commons Attribution Non Commercial Share Alike 4.0 license.