React for Real: Front-End Code, Untangled
暫譯: 真實的 React:前端程式碼解密

Ludovico Fischer

  • 出版商: Pragmatic Bookshelf
  • 出版日期: 2017-10-10
  • 售價: $890
  • 貴賓價: 9.5$846
  • 語言: 英文
  • 頁數: 120
  • 裝訂: Paperback
  • ISBN: 1680502638
  • ISBN-13: 9781680502633
  • 相關分類: React
  • 立即出貨

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

商品描述

When traditional web development techniques don't cut it, try React. Use React to create highly interactive web pages faster and with fewer errors. With a little JavaScript experience under your belt, you'll be up and running in no time creating dynamic web applications. Craft isolated components that make your apps easier to develop and maintain, with plenty of guidance on best practices. Set up automated tests, and make pages render fast for your users. See how to use your React skills to integrate with other front-end technologies when needed.

Dive right into React by defining components, the basic building blocks of a React application. Integrate modern JavaScript language features such as classes and arrow functions in your app. Analyze the relationships in your data to isolate state, and sync the data model with what your users see.

Once you're familiar with how a React application works, organize your code base with modules. Configure a production build and deliver your app as efficiently as possible with Webpack. Master testing with React-specific advice and tools to catch the most bugs with the least amount of code. Learn the basics of the Redux library. Define actions and manage an immutable central state with reducers, then connect Redux to your React components to build even larger and more complex interfaces. Package your React code as a standalone widget so anyone can use it in their own applications. Reuse existing JavaScript code in your React components, and build a new React view on top of an existing data model shared with a legacy application.

When you finish this book, you'll be well on your way to solving your front-end problems with React.

What You Need:

Node.js 6.x or later, and a modern web browser.

商品描述(中文翻譯)

當傳統的網頁開發技術無法滿足需求時,試試 React。使用 React 可以更快且更少錯誤地創建高度互動的網頁。只要你有一些 JavaScript 的經驗,就能迅速上手,創建動態的網頁應用程式。設計獨立的組件,使你的應用程式更容易開發和維護,並提供大量最佳實踐的指導。設置自動化測試,讓你的頁面為用戶快速渲染。了解如何在需要時使用你的 React 技能與其他前端技術整合。

直接進入 React,定義組件,這是 React 應用程式的基本構建塊。在你的應用程式中整合現代 JavaScript 語言特性,例如類和箭頭函數。分析數據中的關係以隔離狀態,並將數據模型與用戶所見的內容同步。

一旦你熟悉了 React 應用程式的運作方式,便可以使用模組來組織你的代碼庫。配置生產環境的構建,並使用 Webpack 以最有效的方式交付你的應用程式。掌握使用 React 特定建議和工具進行測試,以最少的代碼捕捉最多的錯誤。學習 Redux 庫的基本知識。定義動作並使用 reducers 管理不可變的中央狀態,然後將 Redux 連接到你的 React 組件,以構建更大且更複雜的介面。將你的 React 代碼打包為獨立的小部件,以便任何人都可以在自己的應用程式中使用。重用現有的 JavaScript 代碼在你的 React 組件中,並在與舊有應用程式共享的現有數據模型上構建新的 React 視圖。

當你完成這本書時,你將能夠利用 React 解決前端問題。

你需要的工具:
Node.js 6.x 或更高版本,以及一個現代的網頁瀏覽器。