Skip to content
RailsDev.io

Hotwire vs React for Rails Apps: Which Should You Choose in 2026?

Hotwire vs React for Rails apps: an honest decision guide covering when each fits, how they combine, and the trade-offs teams actually feel in production.

Diagram comparing two paths for a Rails app: Hotwire serves HTML with Turbo and Stimulus in the browser, while an API-first build serves JSON to a React SPA
On this page
  1. What Hotwire and React actually are
  2. When Hotwire is the right call
  3. When React is the right call
  4. The decision table
  5. The hybrid that actually works
  6. Common pitfalls
  7. Where this leaves your team
  8. Conclusion
  9. Frequently asked questions

Hotwire vs React is really a question about where you want to spend your complexity budget: in the server-rendered HTML your team already produces, or in a client-side application with its own build pipeline, its own state management and its own failure modes. For most internal tools, content sites and standard CRUD SaaS, Hotwire wins on speed and simplicity. For highly interactive, stateful frontends — kanban boards, rich text editors, real-time dashboards with complex client state — React wins, ideally through a well-defined API or Inertia.js.

This guide compares the two honestly, including where each breaks down, and how to combine them without ending up with two half-built frontends.

What Hotwire and React actually are

Hotwire is a family of techniques (Turbo and Stimulus) for building reactive interfaces by sending HTML over the wire instead of JSON. Turbo Drive replaces full-page loads with frame and stream updates; Turbo Frames scope partial updates to a region of the page; Turbo Streams push changes over a WebSocket. Stimulus adds small, named JavaScript controllers for the pieces that need interactivity.

React is a JavaScript library for building user interfaces out of components, typically with a virtual DOM and a rich ecosystem around state, routing and data fetching. In a Rails app it usually arrives either as a single-page application consuming a JSON API, or through Inertia.js, which keeps Rails controllers and views but renders React components instead of HTML.

The short version: Hotwire keeps the server in charge of rendering and state; React moves rendering to the client.

When Hotwire is the right call

Hotwire shines when the interaction model is “the user does something, the server decides what happens next”:

  • CRUD-heavy SaaS: dashboards, admin areas, settings pages, onboarding flows.
  • Forms with server-side validation, where the server is the source of truth anyway.
  • Pages that mostly display data with occasional interactivity: filters, inline edits, live counters via streams.
  • Small teams: one or two developers who don’t want a second codebase to build, test and deploy.
  • SEO matters: Hotwire pages are plain HTML on first load; there is nothing to hydrate or pre-render.

The practical payoff is that your validation, permissions and business rules live in one place (the Rails models), and a form re-render is a re-render, not a synchronization problem. My post on Turbo Morphing covers the newest piece of that model: live page refreshes without rebuilding the DOM.

When React is the right call

React earns its complexity when the client genuinely holds a lot of state or the interaction model is dense:

  • Rich editors: kanban boards, diagram editors, collaborative documents, calendars with drag and drop.
  • Complex client-side state machines: multi-step wizards with cross-step validation, offline-capable apps.
  • High-frequency updates: live dashboards with many panels updating several times per second.
  • App-like products: design tools, developer environments, anything closer to Figma than to an admin panel.
  • Existing React capability on the team and no appetite to retrain.

If your product is mostly a list of records and a form, React will not save you time; it will double your surface area. If your product is a board where fifty things move at once, Hotwire streams become unpleasant and React’s component model pays off.

The decision table

Situation Reach for Hotwire Reach for React
CRUD plus filters and search Yes Overkill
Real-time dashboard, high update rate Streams, if modest Yes
Drag-and-drop, canvas, rich text Rarely a good fit Yes
SEO-important public pages Yes Needs SSR effort
Small team, want one codebase Yes No
Existing large React frontend Don’t rewrite for fun Keep it, talk to Rails over JSON
Complex offline/sync requirements No Yes
Hiring plan assumes React devs No Yes

The hybrid that actually works

The mistake is treating this as a religion. The patterns I use on real products:

  1. Hotwire for 90% of the app, React islands for the hard 5%. The candidates for React: the editor, the charting canvas, the file uploader with chunked resumable uploads. Everything else stays Hotwire.
  2. Inertia.js when you want React everywhere but one codebase. Rails keeps controllers, routing, sessions and validation; Inertia renders React with a shared client-side router. You lose some of Hotwire’s simplicity but avoid the “two apps and an API contract” failure mode.
  3. API-first when React is the product: a Rails JSON API consumed by a separate React SPA (or mobile app) and kept honest with tests on both sides. This is the right shape for apps with multiple frontends.

If you’re not sure which shape a screen should take, start it with Hotwire and extract to React only when the interaction hurts. Extracting later is cheaper than ripping out an SPA you didn’t need.

Common pitfalls

  • Duplicating validation: put the rules in Rails validations and treat client-side checks as UX sugar only. If both disagree, the server wins.
  • Two ways to render every screen: pick one default per area of the app. Mixed ad-hoc usage is where bugs breed.
  • Ignoring the cost of the build pipeline: React means bundlers, dependency churn and CI minutes. That’s fine when it buys the experience; expensive when it doesn’t.
  • Optimistic UI against the server’s will: if you show a change before the server accepts it, you need a rollback story. Hotwire sidesteps this by letting the server re-render.
  • Assuming Hotwire can’t do interactivity: Stimulus plus a few hundred lines of JavaScript covers a surprising amount of ground before React is justified.

I wrote Ruby on Rails vs Next.js on the adjacent question; the same trade-off shows up there at the framework level.

Where this leaves your team

Choose Hotwire when your product is mostly forms and documents and your team is Rails-strong. Choose React when the product is the interaction. And choose Inertia when you want React’s component model without running two separate applications. If you’d like a second opinion on a specific screen or flow, send me a short brief and book a discovery call — I work on both sides, including React and TypeScript on a Rails backend, as part of my React and Ruby on Rails development service.

Conclusion

Default to Hotwire for most Rails products; reach for React when the interface itself is the product; use Inertia when you want React’s component model without two codebases to maintain. If you’d like help choosing the right shape for a specific screen — or building it, either way — send me a short brief and book a discovery call.

Frequently asked questions

Is Hotwire enough for a SaaS product?

For most SaaS products, yes. Authentication, billing, settings, dashboards and CRUD workflows are Hotwire’s home turf. You add Stimulus for small behaviours and ship one codebase.

Can I use React and Hotwire in the same Rails app?

Yes. A common pattern is Hotwire for the shell and React for specific screens (an editor or a visualization), either mounted as a standalone component or through Inertia for that area.

Is Inertia a replacement for Hotwire?

Not exactly. Inertia replaces Turbo’s HTML-over-the-wire model with client-side rendering while keeping Rails controllers. You trade Turbo’s simplicity for React’s ecosystem; you don’t get both for free.

Do I need a separate API for React with Rails?

Only if you have multiple frontends (web plus mobile) or a decoupled team. Otherwise Inertia or Hotwire avoids the API contract entirely.

Does Hotwire hurt SEO?

No — Hotwire serves real HTML on first load, which is what search engines want. Client-rendered React without SSR or pre-rendering is the one that needs extra care for public, indexable pages.

Which should I pick for a new MVP?

Start with Hotwire unless the product’s core value is a rich interactive surface. You can add React islands to a live MVP later; you can’t subtract an SPA’s complexity as easily.

Keep reading