# React on Rails

Integration of React + Webpack + Rails including server-side rendering of React, enabling a better developer experience and faster client performance.

Repository: https://github.com/shakacode/react_on_rails
Canonical: https://ross.abutalabs.com/products/react-on-rails
Homepage: https://www.shakacode.com/react-on-rails/docs/
Language: Ruby
License: NOASSERTION
License Family: other
Topics: react-rails, react-components, redux-store, rails-views, rails-development, react, webpack, ruby-on-rails, ruby-gem, npm-module, javascript-api, redux, redux-saga, shakacode, heroku-deployment
Last push: 2026-08-26T20:41:57+00:00
Link (homepage): https://www.shakacode.com/react-on-rails/docs/
Link (site_page): https://reactonrails.com/docs/getting-started/using-react-on-rails
Link (site_page): https://reactonrails.com/docs/getting-started/oss-vs-pro
Link (site_page): https://reactonrails.com/docs/pro/upgrading-to-pro
Link (site_page): https://reactonrails.com/docs/introduction

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 95, longevity 100
- inputs: {"age_days": 4031, "days_push": 7, "days_rel": 35, "gap_med": 11.5, "n_releases_24m": 5}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5190, forks 629 (observed 2026-08-28T04:09:11.949181+00:00)

## What it is
React on Rails is a Ruby gem plus npm package that integrates React components into Ruby on Rails applications via view helpers, Shakapacker bundling, and server-side rendering. It supports hot module replacement, auto-bundling, Redux, i18n, and offers a Pro tier with React Server Components, streaming SSR, and a dedicated Node renderer.

## Use cases
- render react components in rails views
- server-side rendering of react for seo in a rails app
- add react to an existing ruby on rails application
- pass rails data to react components without building a separate api
- hot reloading react during rails development
- migrate from react-rails or webpacker to a modern react setup
- react server components with rails

## When to choose
- you have a Rails app and want React without building a separate API backend
- you need SSR of React components for SEO and fast initial page loads
- you want Rails conventions, asset pipeline, and view helpers with modern JS tooling
- you want a maintained integration with generators, tutorials, and commercial support options

## When to avoid
- you are building a standalone SPA or non-Rails backend
- you prefer Hotwire or Inertia-style approaches without a JS build pipeline
- you need RSC, streaming SSR, or high-throughput SSR on the free tier only
- your Rails version is older than 7.0 or Ruby older than 3.3

## Facets
- artifact type: library
- maturity: active
- function: ssr, frontend-framework, build-tool, templating, state-management, internationalization
- domain: web-development, frontend, backend, developer-tools
- platform: ruby, cross-platform
- tags: ruby-on-rails, react, webpack, shakapacker, server-side-rendering, hot-module-replacement, redux, ruby-gem, npm-package, react-server-components, nodejs, web-server

## Member repositories
- shakacode/react_on_rails (main) score 98
- shakacode/react-webpack-rails-tutorial (examples) score 90

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:11.949181+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:01:45.440058+00:00, confidence not recorded.
  - readme: https://github.com/shakacode/react_on_rails (fetched 2026-08-28T04:09:11.949181+00:00, sha 988c53e98071)
  - homepage: https://www.shakacode.com/react-on-rails/docs/ (fetched 2026-08-29T08:55:56.442929+00:00, sha 4ea124f68ce3)
  - site_page: https://reactonrails.com/docs/getting-started/existing-rails-app (fetched 2026-08-29T08:55:56.460401+00:00, sha a886c4d9c285)
  - site_page: https://reactonrails.com/docs/getting-started/using-react-on-rails (fetched 2026-08-29T08:55:56.462242+00:00, sha 94573f6ef05f)
  - site_page: https://reactonrails.com/docs/getting-started/oss-vs-pro (fetched 2026-08-29T08:55:56.464050+00:00, sha c105b77de9b9)
  - site_page: https://reactonrails.com/docs/pro/upgrading-to-pro (fetched 2026-08-29T08:55:56.465609+00:00, sha ac248d24f37a)
  - site_page: https://reactonrails.com/docs/introduction (fetched 2026-08-29T08:55:56.452309+00:00, sha 009990bfc5fc)
  - site_page: https://reactonrails.com/docs/getting-started/create-react-on-rails-app (fetched 2026-08-29T08:55:56.454310+00:00, sha 5150f13b34bb)
  - site_page: https://reactonrails.com/docs/getting-started/quick-start (fetched 2026-08-29T08:55:56.456131+00:00, sha 551a73656059)
  - site_page: https://reactonrails.com/docs/getting-started/tutorial (fetched 2026-08-29T08:55:56.458381+00:00, sha f3e5cc23537b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
