Book description
Apply functional Reactive programming for simple and scalable state management with MobX
Key Features
- The easiest way to learn MobX to enhance your client-side state-management
- Understand how the concepts and components fit together
- Work through different state management scenarios with MobX
Book Description
MobX is a simple and highly scalable state management library in JavaScript. Its abstractions can help you manage state in small to extremely large applications. However, if you are just starting out, it is essential to have a guide that can help you take the first steps. This book aims to be that guide that will equip you with the skills needed to use MobX and effectively handle the state management aspects of your application.
You will first learn about observables, actions, and reactions: the core concepts of MobX. To see how MobX really shines and simplifies state management, you'll work through some real-world use cases. Building on these core concepts and use cases, you will learn about advanced MobX, its APIs, and libraries that extend MobX.
By the end of this book, you will not only have a solid conceptual understanding of MobX, but also practical experience. You will gain the confidence to tackle many of the common state management problems in your own projects.
What you will learn
- Explore the fundamental concepts of MobX, such as observables, actions, and reactions
- Use observables to track state and react to its changes with validations and visual feedback (via React Components)
- Create a MobX observable from different data types
- Define form data as an observable state and tackle sync and async form validations
- Use the special APIs to directly manipulate observables, tracking its changes, and discovering the reasons behind a change
- Tackle any state management issue you may have in your app by combining mobx-utils and mobx-state-tree
- Explore the internals of the MobX reactive system by diving into its inner workings
Who this book is for
This book is for web developers who want to implement easy and scalable state management for their apps. Knowledge of HTML, CSS, and JavaScript is assumed
Table of contents
- Title Page
- Copyright and Credits
- Dedication
- Packt Upsell
- Foreword
- Contributors
- Preface
- Introduction to State Management
- Observables, Actions, and Reactions
- A React App with MobX
- Crafting the Observable Tree
- Derivations, Actions, and Reactions
- Handling Real-World Use Cases
- Special API for Special Cases
- Exploring mobx-utils and mobx-state-tree
- Mobx Internals
- Other Books You May Enjoy
Product information
- Title: MobX Quick Start Guide
- Author(s):
- Release date: July 2018
- Publisher(s): Packt Publishing
- ISBN: 9781789344837
You might also like
book
Getting Started with Web Components
Explore modern Web Component design and integrate them with a variety of web frameworks to build …
article
Run Llama-2 Models Locally with llama.cpp
Llama is Meta’s answer to the growing demand for LLMs. Unlike its well-known technological relative, ChatGPT, …
book
APIs for Modern Commerce
APIs are to today’s digital revolution what steam-powered engines were to the industrial revolution in the …
book
Front-End Reactive Architectures: Explore the Future of the Front-End using Reactive JavaScript Frameworks and Libraries
Learn how to use reactive architectures on the front-end. There are many technologies using a reactive …