React and React Native - Sixth Edition: Build cross-platform JavaScript and TypeScript apps for web and mobile
暫譯: React 與 React Native 第六版:為網頁和行動裝置構建跨平台的 JavaScript 和 TypeScript 應用程式

Sakhniuk, Mikhail, Lobenwein, Rodrigo, Boduch, Adam

  • 出版商: Packt Publishing
  • 出版日期: 2026-04-27
  • 售價: $2,000
  • 貴賓價: 9.5$1,900
  • 語言: 英文
  • 頁數: 578
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1837020299
  • ISBN-13: 9781837020294
  • 相關分類: React
  • 海外代購書籍(需單獨結帳)

商品描述

Get a big-picture view of modern React and React Native and see how they go hand-in-hand, covering TypeScript development, Vite, state management strategies, unit testing with Vitest, advanced techniques, and AI tips and tricks.

Key Features:

- New content on TypeScript, React frameworks, state management strategies, unit testing, and AI-powered productivity.

- Get to grips with React fundamentals and modern React techniques and architecture

- Broaden your React expertise through mobile development with React Native

Book Description:

Welcome to your big-picture guide to the React ecosystem.

If you're new to React and looking to become a professional React developer, this book is for you. This updated sixth edition reflects the current state of React, including coverage of React frameworks and TypeScript.

Part 1 introduces you to React. You'll discover JSX syntax, hooks, functional components, and event handling, learn techniques to fetch data from a server, and tackle the tricky problem of state management. Once you're comfortable with writing React in JavaScript, you'll pick up TypeScript development in later chapters.

Part 2 transitions you into React Native for mobile development. React Native goes hand-in-hand with React. With your React knowledge in place, you'll appreciate where and how React Native differs as you write shared components for Android and iOS apps. You'll learn how to build responsive layouts, use animations, and implement geolocation.

Finally, a new chapter shows you how to use AI as a learning partner, covering practical workflows for AI-assisted debugging, evaluating AI-generated code, recognizing common pitfalls in React and React Native output, and writing code deliberately to deepen your understanding.

By the end of this book, you'll have a big-picture view of React and React Native, and be able to build applications with both.

What You Will Learn:

- Explore React architecture, component properties, state, and context

- Work with React Hooks for handling functions and components

- Fetch data from a server using the Fetch API, GraphQL, and WebSockets

- Dive into internal and external state management strategies

- Build robust user interfaces (UIs) for web apps using Material-UI

- Perform unit testing for your components with Vitest and mocking techniques

- Manage app performance with server-side rendering, lazy components, and Suspense

Who this book is for:

This book is for any JavaScript or TypeScript developer who wants to start learning how to use React and React Native for web and mobile app development.

No prior knowledge of React or React Native is required. However, a working knowledge of JavaScript is necessary to be able to follow along with the content covered.

Table of Contents

- Why React?

- Rendering with JSX

- Understanding React Components and Hooks

- Event Handling in the React Way

- Crafting Reusable Components

- Type-Checking and Validation with TypeScript

- Handling Navigation with Routes

- Code Splitting Using Lazy Components and Suspense

- User Interface Framework Components

- High-Performance State Updates

- Fetching Data from a Server

- State Management in React

- Server-Side Rendering

- Unit Testing in React

- Why React Native?

- React Native Under the Hood

- Kick-Starting React Native Projects

- Building Responsive Layouts with Flexbox

- Navigating Between Screens

- Rendering Item Lists

商品描述(中文翻譯)

獲得現代 React 和 React Native 的全貌,了解它們如何相輔相成,涵蓋 TypeScript 開發、Vite、狀態管理策略、使用 Vitest 進行單元測試、高級技術以及 AI 的提示和技巧。

主要特點:
- 新增有關 TypeScript、React 框架、狀態管理策略、單元測試和 AI 驅動的生產力的內容。
- 理解 React 基礎知識和現代 React 技術及架構。
- 通過 React Native 擴展您的 React 專業知識,進行移動開發。

書籍描述:
歡迎來到您的 React 生態系統全景指南。

如果您是 React 新手並希望成為專業的 React 開發者,這本書適合您。這本更新的第六版反映了 React 的當前狀態,包括對 React 框架和 TypeScript 的介紹。

第一部分將介紹 React。您將發現 JSX 語法、hooks、函數組件和事件處理,學習從伺服器獲取數據的技術,並解決狀態管理的棘手問題。一旦您熟悉用 JavaScript 編寫 React,您將在後面的章節中學習 TypeScript 開發。

第二部分將您引入 React Native 進行移動開發。React Native 與 React 密切相關。掌握 React 知識後,您將能夠欣賞 React Native 在編寫 Android 和 iOS 應用的共享組件時的不同之處。您將學習如何構建響應式佈局、使用動畫和實現地理定位。

最後,一個新章節將向您展示如何將 AI 作為學習夥伴,涵蓋 AI 輔助調試的實用工作流程、評估 AI 生成的代碼、識別 React 和 React Native 輸出中的常見陷阱,以及有意識地編寫代碼以加深理解。

在本書結束時,您將對 React 和 React Native 有一個全貌的了解,並能夠使用這兩者構建應用程序。

您將學到什麼:
- 探索 React 架構、組件屬性、狀態和上下文。
- 使用 React Hooks 處理函數和組件。
- 使用 Fetch API、GraphQL 和 WebSockets 從伺服器獲取數據。
- 深入了解內部和外部狀態管理策略。
- 使用 Material-UI 為網頁應用構建穩健的用戶界面 (UIs)。
- 使用 Vitest 和模擬技術對您的組件進行單元測試。
- 通過伺服器端渲染、懶加載組件和 Suspense 管理應用性能。

本書適合誰:
本書適合任何希望開始學習如何使用 React 和 React Native 進行網頁和移動應用開發的 JavaScript 或 TypeScript 開發者。

不需要具備 React 或 React Native 的先前知識。然而,必須具備 JavaScript 的工作知識,以便能夠跟上所涵蓋的內容。

目錄
- 為什麼選擇 React?
- 使用 JSX 渲染
- 理解 React 組件和 Hooks
- 以 React 方式處理事件
- 創建可重用的組件
- 使用 TypeScript 進行類型檢查和驗證
- 使用路由處理導航
- 使用懶加載組件和 Suspense 進行代碼分割
- 用戶界面框架組件
- 高效的狀態更新
- 從伺服器獲取數據
- React 中的狀態管理
- 伺服器端渲染
- React 中的單元測試
- 為什麼選擇 React Native?
- React Native 的內部運作
- 啟動 React Native 項目
- 使用 Flexbox 構建響應式佈局
- 在屏幕之間導航
- 渲染項目列表