Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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




This 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.


If 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.


im not aware of the generator supporting all that

here's what I get

`Possible values: importmap, bun, webpack, esbuild, rollup`


inertia, I think, avoids writing an api to bridge rails/react


This looks interesting. I think I'll try it out over the weekend. Thanks for sharing.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: