Skip to content

Commit 18dcf3e

Browse files
authored
Merge pull request #956 from joshuapinter/patch-1
Add gem installation to Sprocket instructions.
2 parents 4c3dc73 + 742e01a commit 18dcf3e

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)