react-on-rails
react-rails
react-on-rails | react-rails | |
---|---|---|
12 | 23 | |
5,156 | 6,759 | |
0.2% | -0.0% | |
8.7 | 6.8 | |
6 days ago | 8 months ago | |
Ruby | JavaScript | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
react-on-rails
-
Integrating Ruby on Rails with Modern SPAs
Compared to gems like React on Rails or Intertia Rails, the current gem is just an installer and does virtually nothing to modify or add features to React Router. This is a great advantage and ensures that frontend developers will feel right at home.
-
Rewrite It in Rails
React plus Rails is my favorite modern combo. Development bliss.
https://github.com/shakacode/react_on_rails
-
React + Ruby on Rails without any gems
One is to add a gem: react-rails or react_on_rails for example. But there is a way to have a simple integration without using these gems.
-
Considering moving from NextJS to Rails
You should take a look at https://github.com/shakacode/react_on_rails. I created that repo back in 2015 and it's still going strong. Popmenu.com uses it and we've got 5,000 restaurant chains on the Rails monolith and huge traffic and transaction volume. Check out the html source of a popmenu site, like https://110grill.com. You'll see react-on-rails in the source.
-
Spent the past week learning Stimulus and Hotwire - you don't need it, you can do the same thing with jQuery
It's me, Justin, the guy the started React on Rails and React on Rails Pro many years ago! I'll be following this thread!
-
Best project setup for Rails+React with "remember me" feature
The problem is I have no idea how to implement the "remember me" feature in that gem without just making the tokens not refresh for a very long time (I think that would be a security concern). So then I looked more into react_on_rails to just use sessions with Devise as a normal rails app, but I don't know if I'll be able to deploy that on AWS because of the changes I have to do to the webpacker/webpack config to allow for a better folder structure. I've never done that so I don't know if there may be any issues.
-
Frontend based access control?
I have a production level Ruby on Rails app that is slowly transitioning from pure Rails with JS sprinkles to a Rails backend and React frontend kind of situation using React on Rails.
- How to create a project with both .erb and react? Do I use webpack=react?
-
Does anyone know a way to make a React with Rails application SEO friendly?
https://github.com/shakacode/react_on_rails - It was last updated 2 months ago & can do prerendering. I'm not sure why more people aren't suggesting this.
-
React Frontend vs Hotwire
https://github.com/shakacode/react_on_rails use this instead. It's maintained and preferred nowadays
react-rails
-
Integrating Ruby on Rails with Modern SPAs
The current gem does not help you with this however since it is designed for SPA frameworks. If you wish to take this approach, you can build your own system or use Gems like react-rails and turbo-mount. Turbo Mount uses Stimulus to mount components, and is more robust if you are using Hotwire in your ERB views.
-
Ruby on Rails 8 with Vite and Tailwind CSS 4
> But what if you want to use React?
Then just use React. There's nothing stopping you and it's well supported.
You can use either https://github.com/rails/jsbundling-rails
or https://github.com/reactjs/react-rails
Personally would also go with a No Build set up. i.e. https://hotwire.io/ and import maps.
-
React + Ruby on Rails without any gems
One is to add a gem: react-rails or react_on_rails for example. But there is a way to have a simple integration without using these gems.
-
Why there is no django-react or django-vue package like, for example, Rails has?
https://github.com/reactjs/react-rails here is the functionality and simplicity that I would be kind of looking for. The option for it to exist in Django ecosystem is not that outlandish and I wouldn’t be too ignorant of it having to make sense or not make sense to everyone :)
- React-Rails is a flexible tool to use React with Rails
-
Rails with Svelte or React/NextJs?
You can however use reactjs with rails, there is a gem for it https://github.com/reactjs/react-rails
-
Connect a Ruby on Rails App with React in a Monolith
The react-rails library is one of the most popular Ruby gems to integrate React with Rails. It provides generators for components, testing helpers, and view helpers to render JavaScript code inside the views.
-
React elements not showing up in Rails app?
I'd checkout https://github.com/reactjs/react-rails
What are some alternatives?
reactfire - Hooks, Context Providers, and Components that make it easy to interact with Firebase.
inertia - Inertia.js lets you quickly build modern single-page React, Vue and Svelte apps using classic server-side routing and controllers.
Ruby on Rails - Ruby on Rails
hotwire-livereload - Live reload gem for Hotwire Rails apps.
react-children-utilities - Extended utils for ⚛️ React.Children data structure that adds recursive filter, map and more methods to iterate nested children.
lookbook - A UI development environment for Ruby on Rails apps ✨