Modern Front-End Development for Rails, Second Edition: Hotwire, Stimulus, Turbo, and React

Автор: literator от 13-08-2023, 20:48, Коментариев: 0

Категория: КНИГИ » ПРОГРАММИРОВАНИЕ

Modern Front-End Development for Rails, Second Edition: Hotwire, Stimulus, Turbo, and ReactНазвание: Modern Front-End Development for Rails: Hotwire, Stimulus, Turbo, and React, 2nd Edition
Автор: Noel Rappin
Издательство: Pragmatic Bookshelf
Год: September 2022 (Version: P1.0)
Страниц: 410
Язык: английский
Формат: pdf (true), epub, mobi
Размер: 10.6 MB, 10.3 MB

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 jаvascript 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 jаvascript.

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 jаvascript tools. And you can also add in React, a larger framework that automatically updates the browser when your data changes.

Although it’s primarily a server-side tool, Ruby on Rails offers a lot of support for client-side code. Rails version 7.0 has tools that help you interact with the jаvascript ecosystem to build an exceptional front-end experience. In this book, you’ll learn how you can enhance the user experience of a standard Rails application using front-end tools from the Rails ecosystem (Hotwire, Stimulus, Turbo, and jsbundling) and tools from the jаvascript ecosystem (esbuild, TypeScript, and React) to create a great Rails-based app.

Rails is an opinionated framework, and this is an opinionated book. Being opinionated means that Rails makes certain tasks easier if you are willing to structure your program the way the Rails core team thinks you should. For this book, being opinionated means not trying to show you every possible way Rails and jаvascript can combine, but instead focusing on the tools I think will be most useful. Perhaps the most important opinion is that we’re going to use jаvascript to enhance a mostly server-side Rails application rather than use jаvascript to build a completely separate single-page application (SPA) that only uses Rails as an application programming interface (API).

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 jаvascript 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.

Скачать Modern Front-End Development for Rails: Hotwire, Stimulus, Turbo, and React, 2nd Edition

True PDF:


ePub, Mobi:








Нашел ошибку? Есть жалоба? Жми!
Пожаловаться администрации
Уважаемый посетитель, Вы зашли на сайт как незарегистрированный пользователь.
Мы рекомендуем Вам зарегистрироваться либо войти на сайт под своим именем.
Информация
Посетители, находящиеся в группе Гости, не могут оставлять комментарии к данной публикации.