Need help with sample-react-rails-app?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

206 Stars 42 Forks 19 Commits 2 Opened issues


Sample Rails app with server-rendered React components

Services available


Need anything else?

Contributors list

# 322,693
1 commit

Sample Rails app with isomorphic React components

This is a simple proof-of-concept Rails app that uses the 1.x prerelease version of the react-rails gem, which lets us:

  • render React components server side
  • mount the same React component on top of the server-rendered DOM client side (via an unobtrusive JS adapter)

The app displays a photo with simple list of comments and a form for adding new comments. New comments are added via Ajax, but if JS fails to load (which you can test with

), the form submits via a full page refresh.

To get the app running:

  • bundle install
  • rake db:migrate
  • rails server

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.