React and React Native : Build cross-platform JavaScript and TypeScript apps for the web, desktop, and mobile, 5/e (Paperback)
暫譯: React 與 React Native:為網頁、桌面和行動裝置建構跨平台 JavaScript 和 TypeScript 應用程式,第 5 版(平裝本)

Sakhniuk, Mikhail, Boduch, Adam

  • 出版商: Packt Publishing
  • 出版日期: 2024-04-29
  • 售價: $1,780
  • 貴賓價: 9.5$1,691
  • 語言: 英文
  • 頁數: 508
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1805127306
  • ISBN-13: 9781805127307
  • 相關分類: JavaScriptReactCross-PlatformTypeScript
  • 立即出貨 (庫存=1)

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

相關主題

商品描述

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 Jest, and more.

Purchase of the print or Kindle book includes a free PDF eBook.

Key Features

  • New content on TypeScript, React frameworks, state management strategies, and unit testing
  • 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 fifth edition reflects the current state of React, including React framework coverage as well as 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 behind you, 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.

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 mobile and desktop apps using Material-UI
  • Perform unit testing for your components with Vitest and mocking
  • 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 the content covered.

Table of Contents

  1. Why React?
  2. Rendering with JSX
  3. Understanding React Components and Hooks
  4. State Management in React
  5. Event Handling, the React Way
  6. Crafting Reusable Components
  7. Handling Navigation with Routes
  8. Code Splitting Using Lazy Components and Suspense
  9. User Interface Framework Components
  10. High-Performance State Updates
  11. Fetching Data from a Server
  12. State Management in React
  13. Server-Side Rendering
  14. Unit Testing in React
  15. Why React Native?
  16. React Native Under the Hood
  17. Kickstarting React Native Projects
  18. Building Responsive Layouts with Flexbox
  19. Navigating Between Screens
  20. Rendering Item Lists
  21. Showing Progress
  22. Geolocation and Maps
  23. Collecting User Input
  24. Displaying Modal Screens
  25. Responding to User Gestures
  26. Using Animations
  27. Controlling Image Displays
  28. Going Offline

商品描述(中文翻譯)

取得現代 React 和 React Native 的全貌,了解它們如何相輔相成 - 涵蓋 TypeScript 開發、Vite、狀態管理策略、使用 Jest 進行單元測試等內容。

購買印刷版或 Kindle 版書籍可獲得免費 PDF 電子書。

主要特色

- 新增有關 TypeScript、React 框架、狀態管理策略和單元測試的內容
- 理解 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 應用的共享組件時的不同之處。您將學習如何構建響應式佈局、使用動畫和實現地理定位。

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

您將學到什麼

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

本書適合誰

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

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

目錄

1. 為什麼選擇 React?
2. 使用 JSX 渲染
3. 理解 React 組件和 Hooks
4. React 中的狀態管理
5. 事件處理,React 的方式
6. 創建可重用的組件
7. 使用路由處理導航
8. 使用懶加載組件和 Suspense 進行代碼分割
9. 用戶界面框架組件
10. 高效的狀態更新
11. 從伺服器獲取數據
12. React 中的狀態管理
13. 伺服器端渲染
14. React 中的單元測試
15. 為什麼選擇 React Native?
16. React Native 的內部運作
17. 啟動 React Native 專案
18. 使用 Flexbox 構建響應式佈局
19. 在螢幕之間導航
20. 渲染項目列表
21. 顯示進度
22. 地理定位和地圖
23. 收集用戶輸入
24. 顯示模態螢幕
25. 回應用戶手勢
26. 使用動畫
27. 控制圖像顯示
28. 離線使用