HACKER Q&A
📣 AlexandruGlv

What are the best places to learn Rails' hotwire


Hi! I started learning how to code recently, and built this little prototype app to put together what I learned after around a year: https://lofi-productivity.herokuapp.com/

And I wanted to go deeper with rails because I enjoyed coding with Ruby as I seemed to be more productive with it than with react, and I wondered if some people could recommend useful (and recent) resources for learning hotwire please :)


  👤 Lio Accepted Answer ✓
This is a good question IMHO, I'd love to know the answer myself.

There's the Modern Frontend Dev for Rails book. It's been rewritten to cover Hotwire but still includes a lot of stuff on traditional WPA style frontends. That's useful but I was definitely more interested in a progressive enhancement Hotwire approach based around Stimulus and Rails View Components.

I'm sure you must be aware of the Stimulus Handbook but I'll mention it anyway[2]. Also [3].

Depending on your level you could also try https://www.hotrails.dev/

1. https://pragprog.com/titles/nrclient2/modern-front-end-devel...

2. https://stimulus.hotwired.dev/handbook/introduction

3. https://www.stimulus-components.com/