Skip to content

Commit 390a41a

Browse files
committed
Update usage instructions
I think README file should specify that in order to use builtin version of React user has to add a line to config file. After installing the gem I was expecting it to "just work" (as `jquery-rails` does - `//= require jquery`), so another option might be changing `React::Rails::Railtie`.
1 parent 7fc2fa4 commit 390a41a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ gem 'react-rails', '~> 0.4.1.0'
2525

2626
### react.js
2727

28-
In order to use React client-side in your application, you must make sure the browser requests it. One way to do that is to drop `react.js` into `app/assets/javascript/` and by default your applcation manifest will pick it up. There are downsides to this approach, so we made it even easier. Once you have `react-rails` installed, you can just require react directly in your manifest:
28+
In order to use React client-side in your application, you must make sure the browser requests it. One way to do that is to drop `react.js` into `app/assets/javascript/` and by default your applcation manifest will pick it up. There are downsides to this approach, so we made it even easier. Once you have `react-rails` installed, you can just add a line into your config file (see Configuring) and require react directly in your manifest:
2929

3030
You can `require` it in your manifest:
3131

0 commit comments

Comments
 (0)