3 ms·
I use a pretty standard Rails stack, but just wanted to give a quick shoutout to Stimulus Reflex[1]. For the web app I'm working on, I wanted to add some real-
by shubik22 6y ago
I use a pretty standard Rails stack, but just wanted to give a quick shoutout to Stimulus Reflex[1].
For the web app I'm working on, I wanted to add some real-time functionality (e.g. being able to broadcast updates to all the users on a given page in my application, and have them interact with each other) without having to write a full SPA. I ended up implementing that functionality using Stimulus Reflex and it's been great.
Stimulus Reflex uses:
1) Stimulus JS for frontend functionality
2) CableReady, a websocket library built on top of ActionCable
3) morphdom, a clientside DOM diffing library to update your UI
I'd recommend anyone who wants to incorporate some more advanced functionality into their Rails app to take a look. (I can't speak to how it stacks up against the new Hotwire/Turbo stack, as I haven't built anything with that.)
[1] https://docs.stimulusreflex.com/ https://docs.stimulusreflex.com/