Hotwire
Hotwire is an alternative approach to building modern web applications without using much JavaScript by sending HTML instead of JSON over the wire.
構成要素
accelerates links and form submissions by negating the need for full page reloads.
従来はフォーム送信後のリダイレクトやページ再読み込みでは<body>の全置換が行われていた
Turbo 8からは内部的にIdiormorphライブラリを用いて差分的にmorphすることで表示中のコンテンツを保ったまま変更箇所だけを更新できるようになった decompose pages into independent contexts, which scope navigation and can be lazily loaded.
deliver page changes over WebSocket, SSE or in response to form submissions using just HTML and a set of CRUD-like actions.
lets your majestic monolith form the center of your native iOS and Android apps, with seamless transitions between web and native sections.
"Turboによって80%ぐらいのJSは書かなくてもよくなる"が、それでも足りない動的なUI/UXのために用いるmodestなフレームワーク 例
関連
2022-07