Modern Front-End Development for Rails, Second Edition: Hotwire, Stimulus, Turbo, and React, 2/e (Paperback)
暫譯: Rails現代前端開發(第二版):Hotwire、Stimulus、Turbo與React,2/e(平裝本)

Rappin, Noel

  • 出版商: Pragmatic Bookshelf
  • 出版日期: 2022-10-18
  • 售價: $1,980
  • 貴賓價: 9.5$1,881
  • 語言: 英文
  • 頁數: 410
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1680509616
  • ISBN-13: 9781680509618
  • 相關分類: ReactRuby
  • 立即出貨 (庫存 < 3)

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

商品描述

Improve the user experience for your Rails app with rich, engaging client-side interactions. Learn to use the Rails 7 tools and simplify the complex JavaScript ecosystem. It's easier than ever to build user interactions with Hotwire, Turbo, and Stimulus. You can add great front-end flair without much extra complication. Use React to build a more complex set of client-side features. Structure your code for different levels of client-side needs with these powerful options. Add to your toolkit today!

It's hard to have a Rails application without integrating some client-side logic. But client-side coding tools, and the Rails tools for integrating with them, all change continuously. Rails 7 simplifies client-side integration with the Hotwire gem. It's a great way to build client interaction with server-side HTML and a small amount of JavaScript.

In the latest edition of this book, learn how to use Rails 7 and its front-end bundling tools to build rich front-end logic into your Rails applications. The job is even easier with Stimulus, a library that brings Rails conventions to JavaScript tools. And you can also add in React, a larger framework that automatically updates the browser when your data changes.

Learn the basics of Turbo, Stimulus, and TypeScript, and add pizazz to your application. Structure your web application to best manage your state. Learn how to interact with data on the server while still keeping the user experience interactive. Use the type system in TypeScript to expand on JavaScript and help prevent error conditions. Debug and test your front-end application with tools specific to each framework.

There are a lot of ways to do client-side coding, and Rails is here to help.

What You Need:

This book requires Ruby on Rails 7.0 or later, React 17.0.0 or later. Other dependencies will be added by Rails.

商品描述(中文翻譯)

改善您的 Rails 應用程式的使用者體驗,透過豐富且引人入勝的客戶端互動。學習使用 Rails 7 工具,簡化複雜的 JavaScript 生態系統。使用 Hotwire、Turbo 和 Stimulus,建立使用者互動比以往任何時候都更容易。您可以在不增加太多複雜性的情況下,為前端增添出色的風格。使用 React 建立更複雜的客戶端功能集。利用這些強大的選項,為不同層級的客戶端需求結構化您的程式碼。今天就為您的工具箱增添新工具吧!

在沒有整合一些客戶端邏輯的情況下,很難擁有一個 Rails 應用程式。但是,客戶端編碼工具以及 Rails 整合這些工具的工具都在不斷變化。Rails 7 通過 Hotwire gem 簡化了客戶端整合。這是一個很好的方式,使用伺服器端的 HTML 和少量的 JavaScript 來建立客戶端互動。

在本書的最新版本中,學習如何使用 Rails 7 及其前端打包工具,將豐富的前端邏輯構建到您的 Rails 應用程式中。使用 Stimulus,這是一個將 Rails 約定帶入 JavaScript 工具的庫,這使得工作變得更加簡單。您還可以加入 React,這是一個更大的框架,當您的數據變更時,它會自動更新瀏覽器。

學習 Turbo、Stimulus 和 TypeScript 的基本知識,為您的應用程式增添活力。結構化您的網頁應用程式,以最佳方式管理您的狀態。學習如何與伺服器上的數據互動,同時保持使用者體驗的互動性。使用 TypeScript 的類型系統擴展 JavaScript,並幫助防止錯誤條件。使用特定於每個框架的工具來調試和測試您的前端應用程式。

有很多方法可以進行客戶端編碼,而 Rails 將為您提供幫助。

您需要的條件:

本書需要 Ruby on Rails 7.0 或更高版本,以及 React 17.0.0 或更高版本。其他依賴項將由 Rails 自動添加。

最後瀏覽商品 (20)