Learn React Hooks
暫譯: 學習 React Hooks

Bugl, Daniel

  • 出版商: Packt Publishing
  • 出版日期: 2019-10-18
  • 售價: $1,840
  • 貴賓價: 9.5$1,748
  • 語言: 英文
  • 頁數: 426
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1838641440
  • ISBN-13: 9781838641443
  • 相關分類: React
  • 海外代購書籍(需單獨結帳)

買這商品的人也買了...

商品描述

React Hooks revolutionize how you manage state and effects in your web applications. They enable you to build simple and concise React.js applications, along with helping you avoid using wrapper components in your applications, making it easy to refactor code.

This React book starts by introducing you to React Hooks. You will then get to grips with building a complex UI in React while keeping the code simple and extensible. Next, you will quickly move on to building your first applications with React Hooks. In the next few chapters, the book delves into various Hooks, including the State and Effect Hooks. After covering State Hooks and understanding how to use them, you will focus on the capabilities of Effect Hooks for adding advanced functionality to React apps. You will later explore the Suspense and Context APIs and how they can be used with Hooks. Toward the concluding chapters, you will learn how to integrate Redux and MobX with React Hooks. Finally, the book will help you develop the skill of migrating your existing React class components, and Redux and MobX web applications to Hooks.

By the end of this book, you will be well-versed in building your own custom Hooks and effectively refactoring your React applications.

  • Understand the fundamentals of React Hooks and how they modernize state management in React apps
  • Build your own custom Hooks and learn how to test them
  • Use community Hooks for implementing responsive design and more
  • Learn the limitations of Hooks and what you should and shouldn’t use them for
  • Get to grips with implementing React context using Hooks
  • Refactor your React-based web application, replacing existing React class components with Hooks
  • Use state management solutions such as Redux and MobX with React Hooks
  • Explore effective strategies for migrating your state management from Redux and MobX to React Hooks
  • Integrate Hooks with React features such as Context and Suspense to add advanced functionality to your web apps
  • Create complex applications by combining multiple hooks

商品描述(中文翻譯)

React Hooks 徹底改變了您在網頁應用程式中管理狀態和效果的方式。它們使您能夠構建簡單且簡潔的 React.js 應用程式,並幫助您避免在應用程式中使用包裝組件,從而使代碼重構變得容易。

這本 React 書籍首先介紹了 React Hooks。接著,您將學會在保持代碼簡單且可擴展的情況下,構建複雜的 UI。然後,您將迅速開始使用 React Hooks 構建您的第一個應用程式。在接下來的幾章中,書中深入探討了各種 Hooks,包括狀態(State)和效果(Effect)Hooks。在了解如何使用狀態 Hooks 之後,您將專注於效果 Hooks 的功能,以為 React 應用程式添加高級功能。稍後,您將探索 Suspense 和 Context API 以及它們如何與 Hooks 一起使用。在結尾的幾章中,您將學習如何將 Redux 和 MobX 與 React Hooks 整合。最後,這本書將幫助您培養將現有的 React 類組件以及 Redux 和 MobX 網頁應用程式遷移到 Hooks 的技能。

在本書結束時,您將熟練掌握構建自己的自定義 Hooks 並有效重構您的 React 應用程式的能力。


  • 了解 React Hooks 的基本原理以及它們如何現代化 React 應用程式中的狀態管理

  • 構建自己的自定義 Hooks 並學習如何測試它們

  • 使用社群 Hooks 實現響應式設計等功能

  • 了解 Hooks 的限制以及您應該和不應該使用它們的情況

  • 掌握使用 Hooks 實現 React 上下文的技巧

  • 重構您的基於 React 的網頁應用程式,將現有的 React 類組件替換為 Hooks

  • 使用狀態管理解決方案,如 Redux 和 MobX,與 React Hooks 一起使用

  • 探索將狀態管理從 Redux 和 MobX 遷移到 React Hooks 的有效策略

  • 將 Hooks 與 React 特性(如 Context 和 Suspense)整合,以為您的網頁應用程式添加高級功能

  • 通過結合多個 Hooks 創建複雜的應用程式