Getting Started with React
暫譯: React 入門指南
Doel Sengupta, Manu Singhal, Danillo Corvalan
- 出版商: Packt Publishing
- 出版日期: 2016-04-29
- 售價: $1,660
- 貴賓價: 9.5 折 $1,577
- 語言: 英文
- 頁數: 212
- 裝訂: Paperback
- ISBN: 1783550570
- ISBN-13: 9781783550579
-
相關分類:
React
海外代購書籍(需單獨結帳)
相關主題
商品描述
A light but powerful way to build dynamic real-time applications using ReactJS
About This Book
- Learn how to develop powerful JavaScript applications using ReactJS
- Integrate a React-based app with an external API (Facebook login) while using React components, with the Facebook developer app
- Implement the Reactive paradigm to build stateless and asynchronous apps with React
Who This Book Is For
This book is for any front-end web or mobile-app developer who wants to learn ReactJS. Knowledge of basic JavaScript will give you a good head start with the book.
What You Will Learn
- Understand the ReactJS basics through an overview
- Install and create your first React component
- Refactor the ReactJS component using JSX
- Integrate your React application with the Facebook login and Graph API, then fetch data from your liked pages in Facebook and display them in a browser
- Handle UI elements events with React, respond to users input, and create stateful components
- Use some core lifecycle events for integration and find out about ES6 syntaxes in the React world
- Understand the FLUX architecture and create an application using FLUX with React
- Make a component more reusable with mixins and validation helpers and structure your components properly
- Explore techniques to test your ReactJS code
- Deploy your code using webpack and Gulp
In Detail
ReactJS, popularly known as the V (view) of the MVC architecture, was developed by the Facebook and Instagram developers. It follows a unidirectional data flow, virtual DOM, and DOM difference that are generously leveraged in order to increase the performance of the UI.
Getting Started with React will help you implement the Reactive paradigm to build stateless and asynchronous apps with React. We will begin with an overview of ReactJS and its evolution over the years, followed by building a simple React component. We will then build the same react component with JSX syntax to demystify its usage. You will see how to configure the Facebook Graph API, get your likes list, and render it using React.
Following this, we will break the UI into components and you'll learn how to establish communication between them and respond to users input/events in order to have the UI reflect their state. You'll also get to grips with the ES6 syntaxes.
Moving ahead, we will delve into the FLUX and its architecture, which is used to build client-side web applications and complements React's composable view components by utilizing a unidirectional data flow. Towards the end, you'll find out how to make your components reusable, and test and deploy them into a production environment. Finally, we'll briefly touch on other topics such as React on the server side, Redux and some advanced concepts.
Style and approach
The book follows a step-by-step, practical, tutorial approach with examples that explain the key concepts of ReactJS. Each topic is sequentially explained and contextually placed to give sufficient details of ReactJS.
商品描述(中文翻譯)
使用 ReactJS 建立動態即時應用程式的輕量且強大的方法
本書介紹
- 學習如何使用 ReactJS 開發強大的 JavaScript 應用程式
- 將基於 React 的應用程式與外部 API(Facebook 登入)整合,並使用 React 元件,搭配 Facebook 開發者應用程式
- 實現反應式(Reactive)範式,使用 React 建立無狀態和非同步的應用程式
本書適合誰閱讀
本書適合任何希望學習 ReactJS 的前端網頁或行動應用程式開發者。具備基本的 JavaScript 知識將使您在閱讀本書時更具優勢。
您將學到什麼
- 通過概述了解 ReactJS 的基本概念
- 安裝並創建您的第一個 React 元件
- 使用 JSX 重構 ReactJS 元件
- 將您的 React 應用程式與 Facebook 登入和 Graph API 整合,然後從您喜歡的 Facebook 頁面獲取數據並在瀏覽器中顯示
- 使用 React 處理 UI 元素事件,響應用戶輸入,並創建有狀態的元件
- 使用一些核心生命週期事件進行整合,並了解 React 世界中的 ES6 語法
- 了解 FLUX 架構並使用 FLUX 和 React 創建應用程式
- 使用 mixins 和驗證輔助工具使元件更具可重用性,並正確結構化您的元件
- 探索測試您的 ReactJS 代碼的技術
- 使用 webpack 和 Gulp 部署您的代碼
詳細內容
ReactJS,通常被稱為 MVC 架構中的 V(視圖),是由 Facebook 和 Instagram 的開發者開發的。它遵循單向數據流、虛擬 DOM 和 DOM 差異,這些特性被充分利用以提高 UI 的性能。
開始使用 React 將幫助您實現反應式範式,使用 React 建立無狀態和非同步的應用程式。我們將從 ReactJS 的概述及其多年的演變開始,然後構建一個簡單的 React 元件。接著,我們將使用 JSX 語法構建相同的 React 元件,以揭示其用法。您將看到如何配置 Facebook Graph API,獲取您的喜好列表,並使用 React 渲染它。
隨後,我們將把 UI 拆分為元件,您將學習如何在它們之間建立通信,並響應用戶的輸入/事件,以使 UI 反映其狀態。您還將熟悉 ES6 語法。
接下來,我們將深入探討 FLUX 及其架構,這是用於構建客戶端網頁應用程式的架構,並通過利用單向數據流來補充 React 的可組合視圖元件。在最後,您將了解如何使您的元件可重用,並測試和部署它們到生產環境。最後,我們將簡要介紹其他主題,例如伺服器端的 React、Redux 以及一些進階概念。
風格與方法
本書採用逐步、實用的教學方法,通過示例解釋 ReactJS 的關鍵概念。每個主題都按順序解釋並放置在上下文中,以提供足夠的 ReactJS 詳細資訊。