React installation for Rails using the react-rails gem

suggest change

Add 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

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents