Simplifying State Management in React Native: Master state management from hooks and context through to Redux, MobX, XState, Jotai and React Query

Desmurs-Linczewska, Aleksandra

  • 出版商: Packt Publishing
  • 出版日期: 2023-01-13
  • 售價: $1,150
  • 貴賓價: 9.5$1,093
  • 語言: 英文
  • 頁數: 202
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1803235039
  • ISBN-13: 9781803235035
  • 相關分類: React
  • 下單後立即進貨 (約3~4週)

商品描述

Make fact-based decisions by comparing different solutions and learning popular ways to manage state in React Native with clear guidelines and recommendations by a React Native expert

Key Features

- Explore the big picture of state management in React Native using the most simplified version
- Implement state management solutions by building a social media clone app
- Compare different state solutions in a contained environment to choose the best fit for your future projects

Book Description

Managing state in a React Native app can be challenging as it is one of the most difficult concepts to grasp while learning React Native. This is because there are so many ways to do it, and because there is a lack of clear guidelines on what should be used and why.

Simplifying State Management in React Native is a comprehensive introduction for those who are new to creating robust React Native apps that will have you up to speed in no time. You'll get to grips with the different state management strategies and libraries available. As you progress through the chapters, you'll try out different solutions, as well as compare and choose which solution is perfectly suited to your future projects and personal preferences. Finally, you'll create a social media clone app using all the concepts and examples that you've learned in this book.

By the end of this book, you'll be able to take on existing projects that use various state management strategies and libraries, and confidently make decisions about state management.

What you will learn

- Start out by going over the basic ReactJS “mindset”
- Explore all that ReactJS has to offer to manage state in apps by building an app
- Understand existing state management libraries such as Redux, MobX, XState, Jotai, and React Query
- Decide which libraries you want to use in your apps
- Design a social media app to fully understand state management
- Try out all the solutions presented in the book in a social media clone app

Who this book is for

This book is for junior developers, React Native developers, and mobile app developers who are already using React Native, but are also on the lookout for advice and for a broader view to manage the state and changes in their applications. Basic knowledge of ReactJS and React Native, as well as familiarity with JavaScript and general mobile app development concepts are needed to grasp the topics covered in this book.

商品描述(中文翻譯)

這本書的描述如下:

這本書提供了一個基於事實的決策方法,通過比較不同的解決方案,學習在React Native中管理狀態的流行方法,並由一位React Native專家提供清晰的指南和建議。

主要特點:

- 使用最簡化的版本,探索React Native中狀態管理的整體情況
- 通過構建一個社交媒體克隆應用程序來實現狀態管理解決方案
- 在受控環境中比較不同的狀態解決方案,選擇最適合未來項目的解決方案

書籍描述:

在React Native應用程序中管理狀態可能會很具有挑戰性,因為這是學習React Native時最難理解的概念之一。這是因為有很多方法可以實現狀態管理,並且缺乏明確的指南來解釋應該使用哪種方法以及為什麼要使用。

《簡化React Native中的狀態管理》是一本全面介紹如何創建強大的React Native應用程序的書籍,將使您迅速掌握相關知識。您將瞭解不同的狀態管理策略和庫。隨著閱讀的進展,您將嘗試不同的解決方案,並比較並選擇最適合您未來項目和個人偏好的解決方案。最後,您將使用本書中學到的所有概念和示例創建一個社交媒體克隆應用程序。

通過閱讀本書,您將能夠參與使用各種狀態管理策略和庫的現有項目,並自信地做出有關狀態管理的決策。

您將學到的內容:

- 開始時先了解基本的ReactJS思維方式
- 通過構建應用程序,探索ReactJS在應用程序中管理狀態的所有功能
- 瞭解現有的狀態管理庫,如Redux、MobX、XState、Jotai和React Query
- 決定您想在應用程序中使用的庫
- 設計一個社交媒體應用程序,以全面瞭解狀態管理
- 在社交媒體克隆應用程序中嘗試本書中介紹的所有解決方案

適合閱讀者:

本書適合初級開發人員、React Native開發人員和移動應用程序開發人員,他們已經在使用React Native,但也希望獲得有關管理應用程序中的狀態和變化的建議和更廣泛的視角。閱讀本書需要對ReactJS和React Native有基本的了解,以及對JavaScript和一般移動應用程序開發概念的熟悉。

目錄大綱

1. What are React and React Native?
2. Managing State in a Simple React App
3. Planning and Setting Up the Funbook App
4. Styling and Populating the Funbook App
5. Implementing Redux in Our Funbook App
6. Using MobX as a State Manager in a React Native App
7. Untangling Complex Flows in React Native Apps with XState
8. Integrating Jotai in a React Native App
9. Using React Query for Server-Side-Driven State Management
10. Appendix

目錄大綱(中文翻譯)

1. 什麼是 React 和 React Native?
2. 在簡單的 React 應用程式中管理狀態
3. 計劃和設置 Funbook 應用程式
4. 為 Funbook 應用程式設計樣式和填充內容
5. 在 Funbook 應用程式中實現 Redux
6. 在 React Native 應用程式中使用 MobX 作為狀態管理器
7. 使用 XState 解決 React Native 應用程式中的複雜流程
8. 在 React Native 應用程式中整合 Jotai
9. 使用 React Query 進行伺服器端驅動的狀態管理
10. 附錄