Hotwire Anecdotes
Anecdotes on
Hotwire
My experiences, feelings and thoughts on
Hotwire
Introduction
About this site
Hotwireとは何か?
Hotwireはどいういう時に向いているか?
あなたはHotwireを採用するべきか?
Hotwireは管理画面限定?
Code examples
トグル
アコーディオン
ドロップダウン
リアルタイム検索
サイドバーメニュー
カルーセル
引き出し
トースト
モーダル
「いいね」ボタン
Apple Store模写(複雑なステート)
Chart.js埋め込み
How to think in Hotwire
HotwireはMVPのMPAから作る
TurboとStimulus: どっちを使う?
Hotwire, React, jQueryのアプローチ
Concept
JavaScriptは使おう!
Stimulus中のHTML生成を避ける理由
サーバから見たTurbo FramesとTurbo Streamsの違い
Stimulusのコア・コンセプト
Stimulus Controllerの構造
なるべく<a>や<form>を使用すること
POST/Redirect/GETパターンと高速化
Turboのアキレス腱はネットワーク
Combining with other libraries
Sprockets, Webpacker後の世界
Chart.jsをStimulusから使う
Reactと一緒に使う
Opinions
HotwireのJavaScriptは簡単
Reactが難しい要因はJavaScript
Stimulus controllerの再利用性
Stimulus ControllerはCSS classを変更するべきか?
モーダルダイアログは使うべきか?
Hotwireはもっと簡単にならないのか?
Appendix