React installation for Rails using the react-rails gem
suggest changeAdd react-rails to your Gemfile:
gem "react-rails"
And install:
bundle install
Next, run the installation script:
rails g react:install
This creates a components.js manifest and app/assets/javascripts/components/, where the components go. It also adds this to application.js:
//= require react
//= require react_ujs
//= require components
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents