reactjs/react-rails

Integrate React.js with Rails views and controllers, the asset pipeline, or webpacker.

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 23 minutes ago
Added to GitGenius on September 9th, 2026
Created on July 25th, 2013
Open Issues & Pull Requests: 38 (+0)
GitHub issues: Enabled
Number of forks: 738
Total Stargazers: 6,773 (+0)
Total Subscribers: 104 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 4.1 days
Mean response time: 37.6 days
90th percentile: 118.0 days
Tracked items: 26

How this project is maintained

Around half of the issues opened in the past year never receive a reply. Only 15% of issues opened in the past year have been closed. Three people close 95% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 6
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 1,006 days
Stale 30+ days: 6
Stale 90+ days: 6

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • Metr-Pending (9)
  • discussion (2)
  • enhancement (2)
  • Documentation (1)
  • help wanted (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

React-Rails is a gem that integrates React.js with Rails views and controllers through the asset pipeline or webpacker.

The tool solves the problem of embedding React components within a Rails application by providing automatic server-side and client-side rendering. It works by allowing developers to write React components using JSX, ES6, TypeScript, or CoffeeScript and render them directly from Rails views and controllers. The gem handles the compilation and asset management across different Rails asset systems.

React-Rails suits teams with existing Rails applications who want to adopt React incrementally without a complete architectural overhaul. It works with Sprockets, Propshaft, and Shakapacker as asset pipeline options. However, the README explicitly recommends considering migration to React on Rails for new projects or those requiring more active development, noting that React on Rails receives more frequent updates and testing, includes a TypeScript-based Node rendering package, and has ongoing work to support newer React features like Server Components. The README provides migration documentation and an LLM-assisted migration prompt for teams considering this transition.

Development on the project is maintained by ShakaCode but receives limited active iteration compared to the recommended alternative. The tool remains functional for existing Rails and React integrations but is positioned as a legacy option for teams with established codebases rather than a first choice for new development.