From 390a41ae99b771a0d9c55a0e59927c8cea4a3045 Mon Sep 17 00:00:00 2001 From: Alexander Kotliarskyi Date: Tue, 20 Aug 2013 21:35:42 +0100 Subject: [PATCH] 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`. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9f06411f4..b6361ffd9 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ gem 'react-rails', '~> 0.4.1.0' ### react.js -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: +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: You can `require` it in your manifest: