ShakaCode now maintains the official successor to rails/webpacker, shakapacker.
Project is updated to support Rails 7 and Shakapacker v6+!
These are the docs for React on Rails 13. To see the older docs: v12 and v11.
About
React on Rails integrates Rails with (server rendering of) Facebook's React front-end framework.
This project is maintained by the software consulting firm ShakaCode. We focus on Ruby on Rails applications with React front-ends, often using TypeScript or ReScript (ReasonML). We also build React Native apps and Gatsby sites. See our recent work for examples of what we do. ShakaCode.com (HiChee.com) is hiring developers that like working on open-source.
To provide a high performance framework for integrating Ruby on Rails with React via the Webpacker gem, especially regarding React Server-Side Rendering for better SEO and improved performance.
Features and Why React on Rails?
Given that rails/webpacker gem already provides basic React integration, why would you use "React on Rails"?
Automatic configuration of what bundles are added to the page based on what React components are on the page. This results in faster browser loading time via smaller bundle sizes.
Keep up with the latest changes of different versions of React. React 18 is supported.
Easy passing of props directly from your Rails view to your React components rather than having your Rails view load and then make a separate request to your API.
Tight integration with shakapacker (or it's predecessor rails/webpacker).
Server-Side Rendering (SSR), often used for SEO crawler indexing and UX performance.
See Projects using and KUDOS for React on Rails. Please submit yours! Please edit either page or email us and we'll add your info. We also love stars as it helps us attract new users and contributors.
react-on-rails JavaScript for react_on_rails Ruby gem
The npm package react-on-rails receives a total of 49,008 weekly downloads. As such, react-on-rails popularity was classified as popular.
We found that react-on-rails demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 0 open source maintainers collaborating on the project.
Package last updated on 01 Jun 2023
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."