From 742e01a5c6a02ae57adac8a675d5c8486603b5c8 Mon Sep 17 00:00:00 2001 From: Joshua Pinter Date: Wed, 26 Dec 2018 18:07:59 -0700 Subject: [PATCH] Add gem installation to Sprocket instructions. Skips this step that exists on the Webpacker instructions. --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c952d585b..b8caec3e7 100644 --- a/README.md +++ b/README.md @@ -161,7 +161,13 @@ Doing this will allow React-Rails to support the .tsx extension. ## Use with Asset Pipeline -`react-rails` provides a pre-bundled React.js & a UJS driver to the Rails asset pipeline. Get started by installing: +`react-rails` provides a pre-bundled React.js & a UJS driver to the Rails asset pipeline. Get started by adding the `react-rails` gem: + +``` +gem 'react-rails' +``` + +And then install the react generator: ``` $ rails g react:install