Turbo Drive, Frames, Streams, Morph? What to use?! | Rails Designer
02-May-2025 14
The Hotwire trifecta allows you to write modern (Rails) web apps, without the need to write (a lot of) cumbersome JavaScript with Turbo’s Drive, Frames, Streams or Morph. But with all these options, which one to use and when?
Hotwire, like Rails, needs a mental shift from you as the developer. You can try to use Stimulus on a per-component basis, but you get way more bang for your buck if you write general-purpose controllers instead. The same goes for the various Turbo options.
You get the most value out of Hotwire if you follow progressive enhancement, a web design strategy popularized in 2008 by Aaron Gustafson that ensures basic functionality for all users while layering advanced features for modern browsers. While this strategy is less crucial today given widespread modern browser support for CSS and JavaScript features, it remains valuable in helping you choose the right tool for the job.
Turbo Drive, Frames, Streams, Morph? What to use?! | Rails Designer #ruby #rubydeveloper #rubyonrails #Turbo #Drive, #Frames, #Streams, #Morph? #use?! #Rails #Designer #turbo https://www.rubyonrails.ba/link/turbo-drive-frames-streams-morph-what-to-use-rails-designer