Hotwire, StimulusJS, Stimulus Reflex and Actioncable

Hotwire: the umbrella project for Turbo, StimulusJS, and Strada
Horwire是三者合集:turbo, stimulusJS, strada

Turbo: the sucessor to turbolinks, it provides frames and mechanisms updating them over ajax or websockets. The entire video is about Turbo's integration with rails via the turbo-rails gem.
Turbo 是提供frames ,这里的frames是一帧,也就是一部分内容,然后turbo通过服务器的websockets推送和客户端的ajax抓取,将这个frame展示到页面上。

SitmulusJS: a minimal javascript framework that's been around for a few years. It provides mechanisms to link javascript class instances to blocks of DOM, register event handlers, and keeps everything in sync via the MutationObserver API. It's a very good match for sites using Turbolinks/Turbo
StimulusJS: 一个迷你的javascript框架,has been around 已经出现几年。提供一种机制,链接javascript类实例到DOM,
the blocks of DOM,DOM代表文档的结构用来链接网页js脚本等程序语言。

Actioncable: Rails' built-in websocket implementation. Used behind the scenes by both StimulusReflex and Hotwire.
ActionCable 是rails内置的websocket的实现。

StimulusReflex: an independent project for doing HTML-over-the-wire in Rails that has been around for a few years and gained a lot of attention this year. Built with StimulusJS, ActionCable, and CableReady, it uses websockets for everything and uses fast DOM diffing to update the page. Not as tightly integrated with the standard Rails' scaffold patterns, it offers more flexibility for apps that break out of CRUD patterns.

CableReady: sister project to StimulusReflex, it provides a variety of tools for pushing updates to the client via websocket.
阅读量: 925