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庫的基礎知識。定義動作並使用減少器管理不可變的中央狀態,然後將Redux連接到React元件,以構建更大更複雜的介面。將React代碼打包為獨立小工具,以便任何人都可以在自己的應用程式中使用它。在React元件中重複使用現有的JavaScript代碼,並在與遺留應用程式共享的現有數據模型之上構建新的React視圖。

閱讀完本書後,您將能夠使用React解決前端問題。

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