Micro State Management with React Hooks: Explore custom hooks libraries like Zustand, Jotai, and Valtio to manage global states (Paperback)
暫譯: 使用 React Hooks 進行微型狀態管理:探索 Zustand、Jotai 和 Valtio 等自訂 Hooks 函式庫以管理全域狀態 (平裝本)
Kato, Daishi
- 出版商: Packt Publishing
- 出版日期: 2022-02-25
- 售價: $1,450
- 貴賓價: 9.5 折 $1,378
- 語言: 英文
- 頁數: 254
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1801812373
- ISBN-13: 9781801812375
-
相關分類:
React
立即出貨 (庫存=1)
買這商品的人也買了...
-
$779$740 -
$834$792 -
$1,848Usage-Driven Database Design: From Logical Data Modeling through Physical Schema Definition
-
$393算法設計與分析基礎, 3/e (Introduction to the Design and Analysis of Algorithms, 3/e)
-
$1,470$1,397 -
$454精通 Tableau 商業數據分析與可視化
-
$2,730$2,594 -
$1,008$958 -
$3,040The Algorithm Design Manual, 3/e (Hardcover)
-
$653分佈式製造系統智能協調控制理論與模型
-
$830統計學習要素:機器學習中的數據挖掘、推斷與預測, 2/e (The Elements of Statistical Learning: Data Mining, Inference, and Prediction, 2/e)
-
$680$537 -
$1,600$1,520 -
$520$468 -
$1,380$1,311 -
$1,580$1,501 -
$800$680 -
$1,750$1,663 -
$1,460$1,387 -
$780$616 -
$2,050$1,948 -
$1,610$1,530 -
$650$507 -
$600$468 -
$390$371
商品描述
Key Features
- Understand the essential concepts and features of micro state management
- Discover solutions to common problems faced while implementing micro state management
- Explore the different libraries, their coding style, and the optimum approach to rendering optimization
Book Description
State management is one of the most complex concepts in React. Traditionally, developers have used monolithic state management solutions. Thanks to React Hooks, micro state management is something tuned for moving your application from a monolith to a microservice.
This book provides a hands-on approach to the implementation of micro state management that will have you up and running and productive in no time. You'll learn basic patterns for state management in React and understand how to overcome the challenges encountered when you need to make the state global. Later chapters will show you how slicing a state into pieces is the way to overcome limitations. Using hooks, you'll see how you can easily reuse logic and have several solutions for specific domains, such as form state and server cache state. Finally, you'll explore how to use libraries such as Zustand, Jotai, and Valtio to organize state and manage development efficiently.
By the end of this React book, you'll have learned how to choose the right global state management solution for your app requirement.
What you will learn
- Understand micro state management and how you can deal with global stat
- Build libraries using micro state management along with React Hooks
- Discover how micro approaches are easy using React Hooks
- Understand the difference between component state and module state
- Explore several approaches for implementing a global state
- Become well-versed with concrete examples and libraries such as Zustand, Jotai, and Valtio
Who this book is for
If you're a React developer dealing with complex global state management solutions and want to learn how to choose the best alternative based on your requirements, this book is for you. Basic knowledge of JavaScript programming, React Hooks and TypeScript is assumed.
商品描述(中文翻譯)
#### 主要特點
- 理解微型狀態管理的基本概念和特性
- 探索在實施微型狀態管理時常見問題的解決方案
- 探討不同的庫、它們的編碼風格,以及最佳的渲染優化方法
#### 書籍描述
狀態管理是 React 中最複雜的概念之一。傳統上,開發者使用單體狀態管理解決方案。得益於 React Hooks,微型狀態管理是將您的應用程序從單體轉移到微服務的調整方案。
本書提供了一種實踐方法來實施微型狀態管理,讓您能夠迅速上手並提高生產力。您將學習 React 中狀態管理的基本模式,並理解在需要將狀態設為全局時如何克服所遇到的挑戰。後面的章節將展示如何將狀態切片以克服限制。使用 hooks,您將看到如何輕鬆重用邏輯,並為特定領域(如表單狀態和伺服器快取狀態)提供多種解決方案。最後,您將探索如何使用 Zustand、Jotai 和 Valtio 等庫來組織狀態並高效管理開發。
在這本 React 書籍結束時,您將學會如何為您的應用需求選擇合適的全局狀態管理解決方案。
#### 您將學到什麼
- 理解微型狀態管理以及如何處理全局狀態
- 使用微型狀態管理和 React Hooks 構建庫
- 探索使用 React Hooks 進行微型方法的簡易性
- 理解組件狀態和模組狀態之間的差異
- 探索實施全局狀態的幾種方法
- 熟悉具體範例和庫,如 Zustand、Jotai 和 Valtio
#### 本書適合誰
如果您是處理複雜全局狀態管理解決方案的 React 開發者,並希望學習如何根據需求選擇最佳替代方案,那麼這本書適合您。本書假設您具備基本的 JavaScript 編程、React Hooks 和 TypeScript 知識。
作者簡介
1. What is Micro State Management with React Hooks?
2. Using Local and Global States
3. Sharing Component State with Context
4. Sharing Module State with Subscription
5. Sharing Component State with Context and Subscription
6. Introducing Global State Libraries
7. Use Case Scenario 1 – Zustand
8. Use Case Scenario 2 – Jotai
9. Use Case Scenario 3 – Valtio
10. Use Case Scenario 4 – React Tracked
11. Similarities and Differences between Three Global State Libraries
作者簡介(中文翻譯)
1. 什麼是使用 React Hooks 的微型狀態管理?
2. 使用本地狀態和全局狀態
3. 使用 Context 共享組件狀態
4. 使用訂閱共享模組狀態
5. 使用 Context 和訂閱共享組件狀態
6. 介紹全局狀態庫
7. 使用案例場景 1 – Zustand
8. 使用案例場景 2 – Jotai
9. 使用案例場景 3 – Valtio
10. 使用案例場景 4 – React Tracked
11. 三個全局狀態庫之間的相似性和差異性