Sample Rails app with server-rendered 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:
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
?js=broken), the form submits via a full page refresh.
To get the app running: