As a die hard rails developer, can someone sell me on Stimulus?

I'm just now exploring turbo frames and I don't quite get the benefit. I use rails with vite. API endpoints are mounted under `/api/v1`, and frontend routes are all funneled through react-router.

If you're using a javascript frontend like React there is no real benefit of Stimulus. Even with turbo frames you can have React handle the updates.

Stimulus is just a minimalistic way of binding javascript classes to dynamic dom components.

  • _3u10
  • ·
  • 2 weeks ago
  • ·
  • [ - ]
Stimulus is to Vite as vite is to react. The point is to do more stuff server side with minimal JS.
once again - proves you can't escape from js frameworks. if anyone has used stimulus you realize you're slowly making your own miniframework with turbo streams etc.

stimulus is cool, if you know you gonna have less than 5 js stimulus controllers.

Rails is still unmatched in terms of productivity for API mode.