Hacker GitHub

← All repos

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

Mentions per year 17 mentions · busiest year 2016 (5)
20082026
  1. …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.
  2. 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
  3. …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
  4. 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)
  5. 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
  6. …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…
  7. …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
  8. …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…
  9. …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
  10. …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
  11. …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
  12. Ruby Gem https://github.com/reactjs/react-rails works fine.
    comment by liberale · 2015-11-30 · in How to Structure React Projects
  13. …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
  14. …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
  15. …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