React and React Native - Fifth Edition: Build cross-platform JavaScript and TypeScript apps for the web, desktop, and mobile
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
-
相關分類:
JavaScript、React、Cross-Platform、TypeScript
立即出貨 (庫存=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
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
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- Why React?
- Rendering with JSX
- Understanding React Components and Hooks
- State Management in React
- Event Handling, the React Way
- Crafting Reusable Components
- 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
- Kickstarting React Native Projects
- Building Responsive Layouts with Flexbox
- Navigating Between Screens
- Rendering Item Lists
- Showing Progress
- Geolocation and Maps
- Collecting User Input
- Displaying Modal Screens
- Responding to User Gestures
- Using Animations
- Controlling Image Displays
- Going Offline
商品描述(中文翻譯)
獲取現代React和React Native的整體概覽,並了解它們如何相輔相成 - 包括TypeScript開發、Vite、狀態管理策略、使用Jest進行單元測試等等。
購買印刷版或Kindle電子書將包含免費的PDF電子書。
主要特點:
- 新增有關TypeScript、React框架、狀態管理策略和單元測試的內容
- 瞭解React基礎知識和現代React技術和架構
- 通過React Native進行移動開發,擴展您的React專業知識
書籍描述:
歡迎來到React生態系統的整體指南。
如果您是React的新手並希望成為專業的React開發人員,這本書適合您。這本更新的第五版反映了React的當前狀態,包括React框架的涵蓋範圍以及TypeScript。
第1部分介紹了React。您將了解JSX語法、hooks、函數組件和事件處理,學習從服務器獲取數據的技術,並解決狀態管理的棘手問題。一旦您熟悉使用JavaScript編寫React,您將在後面的章節中學習TypeScript開發。
第2部分將您引入React Native進行移動開發。React Native與React緊密相關。在掌握React知識的基礎上,您將在為Android和iOS應用程序編寫共享組件時了解React Native的差異。您將學習如何構建響應式佈局、使用動畫和實現地理位置。
通過閱讀本書,您將對React和React Native有一個整體的概念,並能夠使用兩者來構建應用程序。
您將學到什麼:
- 探索React架構、組件屬性、狀態和上下文
- 使用React Hooks處理函數和組件
- 使用Fetch API、GraphQL和WebSockets從服務器獲取數據
- 深入研究內部和外部狀態管理策略
- 使用Material-UI為移動和桌面應用程序構建強大的用戶界面(UI)
- 使用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. 離線使用