Skip to content

Commit 742e01a

Browse files
authored
Add gem installation to Sprocket instructions.
Skips this step that exists on the Webpacker instructions.
1 parent 4c3dc73 commit 742e01a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,13 @@ Doing this will allow React-Rails to support the .tsx extension.
161161

162162
## Use with Asset Pipeline
163163

164-
`react-rails` provides a pre-bundled React.js & a UJS driver to the Rails asset pipeline. Get started by installing:
164+
`react-rails` provides a pre-bundled React.js & a UJS driver to the Rails asset pipeline. Get started by adding the `react-rails` gem:
165+
166+
```
167+
gem 'react-rails'
168+
```
169+
170+
And then install the react generator:
165171

166172
```
167173
$ rails g react:install

0 commit comments

Comments
 (0)