A Full tutorial article can be found at: Part 2: Server Rendering a ES6 React.js App Using Ruby on Rails.
- Be sure that you have Node installed! We suggest nvm, with node version v5.3.0 or above. See part 1 of the blog.
git clone git@github.com:wego/es6-react-webpack-rails-demo.gitcd es6-react-webpack-rails-demo- Check that you're using the right version of node. Run
node -vto check, you should see5.3.0 bundle installnpm installrails server- Open a browser tab to
http://localhost:3000for the Facebook example