- Notifications
You must be signed in to change notification settings - Fork753
Integrate React.js with Rails views and controllers, the asset pipeline, or webpacker.
License
reactjs/react-rails
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
For version 2.7 documentation, visit the2.7-stable branch.
React-Rails is a flexible tool to useReact with Rails. The benefits:
- Automatically renders React server-side and client-side
- SupportsShakapacker v7
- Supports Sprockets 4.x, 3.x
- Lets you useJSX,ES6,TypeScript,CoffeeScript
While ShakaCode will continue to support this gem, you might consider migrating toReact on Rails orReact on Rails Pro with proper Node rendering.
Why? React on Rails code receives much more active development and testing. For example, consider theReactRailsUJS implementation compared to theReactOnRails Node package which is written in TypeScript. For another example, React on Rails has work underway to support the latest React features, such asReact Server Components.
You can findmigration to React on Rails steps here.
ShakaCode focuses on helping Ruby on Rails teams use React and Webpack better. We can upgrade your project and improve your development and customer experiences, allowing you to focus on building new features or fixing bugs instead.
For an overview of working with us, see ourClient Engagement Model article andhow we bill for time.
We also specialize in helping development teams lower infrastructure and CI costs. Check out our projectControl Plane Flow, which can allow you to get the ease of Heroku with the power of Kubernetes and big cost savings.
If you think ShakaCode can help your project,click here to book a call withJustin Gordon, the creator of React on Rails and Shakapacker.
Here's a testimonial of how ShakaCode can help fromFlorian Gößler ofBlinkist, January 2, 2023:
Hey Justin 👋
I just wanted to let you know that we today shipped the webpacker to shakapacker upgrades and it all seems to be running smoothly! Thanks again for all your support and your teams work! 😍
On top of your work, it was now also very easy for me to upgrade Tailwind and include our external node_module based web component library which we were using for our other (more modern) apps already. That work is going to be shipped later this week though as we are polishing the last bits of it. 😉
Have a great 2023 and maybe we get to work together again later in the year! 🙌
Read thefull review here.
- Click to joinReact + Rails Slack. Then join the channel
#react-rails
. - If upgrading, consider migrating to thereact_on_rails gem.
- Source code example utilizing React-Rails:https://github.com/BookOfGreg/react-rails-example-app
- Get started
- View Helper
- UJS
- Server-Side Rendering
- Controller Actions
- Component Generator
- Upgrading
- Migrating from
react-rails
toreact_on_rails
- Common Errors
After reading this README file, additional information about React-Rails can be found on the Wiki page:https://github.com/reactjs/React-Rails/wikiThe Wiki page features a significant amount of additional information about React-Rails, including instructional articles and answers to the most frequently asked questions.
- react_on_rails: Integration of React with Rails utilizing Webpack, Redux, React-Router.
- React on Rails Pro:React on Rails with Node rendering and many other performance enhancements.
- react-rails-benchmark_renderer adds performance instrumentation to server rendering.
- Ruby Hyperstack: Use Ruby to build reactive user interfaces with React.
🎉 Thanks for taking the time to contribute! 🎉 SeeCONTRIBUTING.md for more details.
The following companies provide licenses to the ShakaCode team, supporting the development of this and other open-source projects maintained by ShakaCode. ShakaCode stands by the usefulness of these products!




ShakaCode ishiring!
About
Integrate React.js with Rails views and controllers, the asset pipeline, or webpacker.
Topics
Resources
License
Code of conduct
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.