MobX Quick Start Guide: Supercharge the client state in your React apps with MobX
暫譯: MobX 快速入門指南:使用 MobX 強化您的 React 應用程式的客戶端狀態
Pavan Podila, Michel Weststrate
- 出版商: Packt Publishing
- 出版日期: 2018-07-24
- 售價: $1,400
- 貴賓價: 9.5 折 $1,330
- 語言: 英文
- 頁數: 236
- 裝訂: Paperback
- ISBN: 1789344832
- ISBN-13: 9781789344837
-
相關分類:
React
海外代購書籍(需單獨結帳)
商品描述
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
- 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
商品描述(中文翻譯)
**應用功能性反應式編程以使用 MobX 進行簡單且可擴展的狀態管理**
#### 主要特點
- 學習 MobX 以增強您的客戶端狀態管理的最簡單方法
- 理解概念和組件如何相互配合
- 通過 MobX 處理不同的狀態管理場景
#### 書籍描述
MobX 是一個簡單且高度可擴展的 JavaScript 狀態管理庫。它的抽象可以幫助您在小型到極大型的應用程式中管理狀態。然而,如果您剛開始接觸,擁有一本能幫助您邁出第一步的指南是至關重要的。本書旨在成為這樣的指南,讓您掌握使用 MobX 所需的技能,並有效處理應用程式的狀態管理方面。
您將首先學習可觀察對象(observables)、動作(actions)和反應(reactions):MobX 的核心概念。為了了解 MobX 如何真正發揮作用並簡化狀態管理,您將通過一些真實世界的使用案例進行實作。在這些核心概念和使用案例的基礎上,您將學習進階的 MobX、其 API 以及擴展 MobX 的庫。
在本書結束時,您不僅會對 MobX 有堅實的概念理解,還會擁有實際經驗。您將獲得信心,能夠解決自己專案中的許多常見狀態管理問題。
#### 您將學到的內容
- 探索 MobX 的基本概念,如可觀察對象、動作和反應
- 使用可觀察對象來追蹤狀態並對其變化做出反應,並提供驗證和視覺反饋(通過 React 組件)
- 從不同數據類型創建 MobX 可觀察對象
- 將表單數據定義為可觀察狀態,並處理同步和異步表單驗證
- 使用特殊 API 直接操作可觀察對象,追蹤其變化,並發現變化背後的原因
- 通過結合 mobx-utils 和 mobx-state-tree 解決您應用程式中的任何狀態管理問題
- 深入探索 MobX 反應式系統的內部運作
#### 本書適合誰
本書適合希望為其應用程式實現簡單且可擴展的狀態管理的網頁開發人員。假設您具備 HTML、CSS 和 JavaScript 的知識。
#### 目錄
1. 狀態管理簡介
2. 可觀察對象、動作和反應
3. 使用 MobX 的 React 應用程式
4. 構建可觀察樹
5. 派生、動作和反應
6. 處理真實世界的使用案例
7. 特殊情況的特殊 API
8. 探索 mobx-utils 和 mobx-state-tree
9. MobX 內部運作