~/talk

Hotwiring My React Brain

Talkat RailsConf 2023 · 2023-04-24..04-26· [ruby-on-rails]
slides:none on file

Claim: a React-style snappy UI is achievable with Rails 7 using very little JavaScript. Uses Hotwire (Turbo + Stimulus controllers), turbo_frame_tag, data-turbo-frame and turbo actions to scope navigation, turbo frame source to lazy-load sidebars, and narrow per-paragraph frames for inline edits. Builds a Rails Guides replica with chapter-scoped navigation, in-place paragraph editing, and a keyboard-triggered modal search. Demonstrations show partial responses swapping correctly, loading states handled, and inline saves and search working with minimal client code.

AI-written summary · about

  1. 0:00Introduction
  2. 3:12What is Hotwire
  3. 7:07React vs Hotwire mental models
  4. 10:34Building a site with Hotwire
  5. 12:37Starting without Hotwire
  6. 15:04Turbo frames in practice
  7. 19:19Enhancing navigation with Turbo
  8. 21:49Eager loading in Turbo frames
  9. 23:18Live inline editing with Turbo
  10. 25:46Narrowly scoped Turbo frames
  11. 27:55Adding Stimulus behavior
  12. 31:55Closing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.