Micro State Management with React Hooks: Explore custom hooks libraries like Zustand, Jotai, and Valtio to manage global states (Paperback)
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 -
$556Angular 權威教程
-
$1,848Usage-Driven Database Design: From Logical Data Modeling through Physical Schema Definition
-
$352$331 -
$1,420$1,349 -
$454精通 Tableau 商業數據分析與可視化
-
$2,650$2,518 -
$1,008$958 -
$3,040The Algorithm Design Manual, 3/e (Hardcover)
-
$653分佈式製造系統智能協調控制理論與模型
-
$954$906 -
$680$537 -
$1,600$1,520 -
$520$411 -
$1,380$1,311 -
$1,580$1,501 -
$800$624 -
$1,750$1,663 -
$1,460$1,387 -
$780$616 -
$1,990$1,891 -
$1,610$1,530 -
$650$507 -
$600$468
相關主題
商品描述
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 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. 使用上下文共享組件狀態
4. 使用訂閱共享模塊狀態
5. 使用上下文和訂閱共享組件狀態
6. 介紹全局狀態庫
7. 使用案例1 - Zustand
8. 使用案例2 - Jotai
9. 使用案例3 - Valtio
10. 使用案例4 - React Tracked
11. 三個全局狀態庫之間的相似性和差異性