4 ms·
I believe you can do anything React can with Stimulus + Turbo these days. I don't do much FE but I've been tracking Hotwire for some time now.
by siaw23 4y ago
I believe you can do anything React can with Stimulus + Turbo these days. I don't do much FE but I've been tracking Hotwire for some time now.
- sharps_xp 4y agoperhaps for most things but probably not to the extent of something like excalidraw, which uses react
- splitrocket 4y agoYes, but in that case, you can use only the complexity where you need it, instead of globally.
- mokkol 4y agoYou can still use React or whatever on those pages. And for the rest (settings pages, signup pages and all the CRUD pages) you can use standard Rails with Hotwire.
- simpsond 4y agoYes, but there is a whole ecosystem of react components and react developers.
- jacobsenscott 4y agoMaybe you can with heroic effort, but you shouldn't. You should build within the constraints of your tools. HW + Stimulus are great - good enough for what most web apps need to do. It gives you "traditional web app, with a bit of realtime updating" - which is the perfect fit for most web apps. But you wouldn't want to use it for a fully interactive desktop style application with lots of interacting components.
- 0xblinq 4y agoAgree. So unless you have a pretty big budget and you're building Google Maps or Figma you shouldn't use React. Sadly, everyone things they have such a big budget and they're building the next Figma. Even if you're building a CRUD app. (I'm talking to you previous team of mine).
- jemmyw 4y agoYou can do anything with plain JS too, but that doesn't mean you'd want to. The problem with Hotwire is that you do often have the server round trip in there. That's fine most of the time, it just gets a little harder to understand as the complexity rises. That's not to knock it, I think Hotwire is pretty good.
- andrei_says_ 4y agoIn what scenario would complexity be higher in a simple UI - server loop? Doesn’t complexity usually arise from having additional logic in the browser and maintaining state separately?
- jemmyw 4y agoI guess it depends somewhat on how you imagine up something and write it. I was working on some drag and drop UI that had multiple sortable lists and an action area. Figuring the server side and UI at the same time didn't work out. I reversed and implemented the UI with its required state, and then it was easy to transform that state to what the server side required, and vice versa. Complexity is tricky. Are three simple things more complex than one thing thats harder to understand?
- granshaw 4y agoStill decent amount of caveats given the UX expectations of 2023... eg last I checked there was no official support for transition animations