reactjs/react-rails
View on GitHub ↗ ★ 6,775 JavaScript
Integrate React.js with Rails views and controllers, the asset pipeline, or webpacker.
17 mentions on Hacker News by 16 people: 2 stories, 15 comments · first 2014-10-16 · latest 2025-02-05
20082026
-
…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.
comment by Lio · 2025-02-05 · in Ruby on Rails 8 with Vite and Tailwind CSS 4 -
▲ 1
React-Rails is a flexible tool to use React with Railsstory by mariuz · 2022-10-27 · 0 comments
-
I feel like react-rails ( https://github.com/reactjs/react-rails ) is basically perfect for this. You just make the photo upload its own react component and render it as normal from your rails view. You basically encapsulate the small bit…
comment by camjw · 2022-03-02 · in SPAs Were a Mistake -
…but the react-rails readme includes a section about SSR via ExecJS and integrated with Rails: https://github.com/reactjs/react-rails#server-side-rendering
comment by there_the_and · 2020-08-11 · in Single Page Applications using Rust -
If you're looking into React, have a look at this. https://github.com/reactjs/react-rails Sets up Webpack and directly integrates into your templates with ERB tags like <%= react_component("HelloWorld", { greeting: "Hello from…
comment by benbristow · 2019-02-10 · in Ruby in Twenty Minutes (2006) -
Rails 5 already has webpack support and React support. https://github.com/rails/webpacker https://github.com/reactjs/react-rails Can use it pretty much fully in place of the asset pipeline. Can use standard ERB and spice it up with React…
comment by benbristow · 2018-10-17 · in Responder: A familiar HTTP Service Framework -
…the best of both worlds by hooking up your templates in js to be rendered by your backend - eg like https://github.com/reactjs/react-rails does. In the end for my next project I decided to do an api for the backend in python and the…
comment by zepolen · 2017-07-15 · in Universal Jinja: a crazy idea for a Python-ready front end -
…seems to be pretty forward-facing in building plugins for client-side tech, i.e react-rails [0] [0] https://github.com/reactjs/react-rails
comment by danso · 2016-11-14 · in Ask HN: If you were to build a CRM today what would your stack be? -
…as the solution to this issue. Instead of merely providing you with React and React only like https://github.com/reactjs/react-rails does, it welds Node & Rails together to enable you to use the latest and greatest of the javascript…
comment by judahmeek · 2016-11-13 · in Ask HN: Someone here to team up with me on a project to learn React together? -
…hard to grok at first. But React just "clicked" instantly. For integration with Rails, I found https://github.com/reactjs/react-rails to be quite useful. It integrates the Babel transformer for JSX into the asset pipeline and brings a…
comment by kwood · 2016-10-11 · in React Implementation Notes -
…a live-search component or a whole new dashboard view). We're doing something very similar to this: https://github.com/reactjs/react-rails#rendering--mounting
comment by jukkakoskinen · 2016-08-14 · in React is mostly hype -
…and pretty flexible, but I haven't used it a huge amount so can't give much detailed feedback. 1. https://github.com/reactjs/react-rails 2. https://github.com/shakacode/react_on_rails
comment by RobertKerans · 2016-05-18 · in React-Boilerplate v3: The “JS Fatigue Antivenin” Edition -
Ruby Gem https://github.com/reactjs/react-rails works fine.
comment by liberale · 2015-11-30 · in How to Structure React Projects -
…lists of things. The rest of the application is just plain old server-side rendered HTML. 1. https://github.com/reactjs/react-rails
comment by careersuicide · 2015-10-07 · in React v0.14 -
▲ 2
Ruby gem for automatically transforming JSX and using React in Railsstory by tilt · 2015-03-11 · 0 comments
-
…are discretely coded. The react-rails gem is capable of doing server-side rendering out of the box: https://github.com/reactjs/react-rails
comment by Smudge · 2014-10-23 · in The web, it's for everyone -
…official gem[0] a lot of Ruby on Rails developers use to include React in their Rails projects. 0 - https://github.com/reactjs/react-rails
comment by rubiquity · 2014-10-16 · in Show HN: React on Rails (isomorphic JS React framework)