Hotwiring My React Brain

July 14, 2023 33 min Free

Description

Hi. Have you been writing Rails API-mode json backends for React front ends for the last few years? Me too. Have you been daydreaming about the days when you could just write a view template and render some html server-side? Me too. Have you been wondering if it's possible to have rich, snappy UIs with only Rails, and very little js? Me too. Are you now working on a fully Hotwire and Turbo app, having to re-learn everything you've grown comfortable with in front-end development? Me.. huh? no? Well come along and I'll show you how I re-implemented my conception of the client side with Rails' Hotwire view layer. This talk explores the transition from a React-centric frontend development mental model to one that embraces Hotwire, Turbo, and Stimulus for server-rendered HTML, discussing the mental model shifts required and demonstrating practical examples with the Ruby on Rails guides.