3 ms·
Any thoughts on Inertia.js, which seems like a good solution for React + Rails? Feels like you can have your cake and eat it too. https://github.com/inertiajs/
by Axsuul 2y ago
Any thoughts on Inertia.js, which seems like a good solution for React + Rails? Feels like you can have your cake and eat it too.
https://github.com/inertiajs/inertia-rails https://github.com/inertiajs/inertia-rails
- choxi 2y agoIf you just want React+Rails, the rails generator command comes with a bunch of options to set that up for you, including setting up and configuring: React/Vue/etc, a bundler like vite, typescript, tailwind. It looks like inertia has additional features though.
- x0x0 2y agoinertia, I think, avoids writing an api to bridge rails/react
- winterbloom 2y agoim not aware of the generator supporting all that here's what I get `Possible values: importmap, bun, webpack, esbuild, rollup`
- inanepenguin 2y agoThis looks fairly lightweight and clean, but you immediately replace a large portion of the Rails ecosystem with React and will constantly need to account for that when deciding how to build your application. By sticking closer to "the Rails way" you get the support of it's massive community. If Intertia.js development halts, then you're stuck with either a) adopting something else, or b) maintaining the tool for your own use cases. Using something like this would, imo, be closer to building a Rails app in API mode with a separated frontend than adding a new library on top of Rails.
- phaedryx 2y agoThis looks interesting. I think I'll try it out over the weekend. Thanks for sharing.