Skip to content

Commit ae2dee4

Browse files
committed
Updated info about drop-in feature in README
1 parent 14b4df7 commit ae2dee4

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

README.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,14 @@ As with all gem dependencies, we strongly recommend adding `react-rails` to your
1717
```ruby
1818
# Gemfile
1919

20-
gem 'react-rails', '~> 0.8.0.0'
20+
gem 'react-rails', '~> 1.0.0'
2121
```
2222

23-
Starting with `0.4.1` there is a fix, which alows execjs to transforms jsx files, so if you need a version lower than
24-
`0.4.1` you will have to replace JSXTransformer.js, see below on how to do it.
25-
2623
## Usage
2724

2825
### react.js
2926

30-
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 application 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:
27+
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 `vendor/assets/javascript/` and by default your application 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:
3128

3229
You can `require` it in your manifest:
3330

@@ -133,9 +130,7 @@ Component = React.createClass
133130

134131
### Changing react.js and JSXTransformer.js versions
135132

136-
This gem's version is independent from actual react's version, that's why you need declarations for both `react-rails`
137-
and `react-source` in your `Gemfile`. However, in some cases you may want to have your `react.js` and `JSXTransformer.js`
138-
files come from different releases. To achieve that, you have to manually replace either of them in your app.
133+
In some cases you may want to have your `react.js` and `JSXTransformer.js` files come from a different release than the one, that is specified in the `react-rails.gemspec`. To achieve that, you have to manually replace them in your app.
139134

140135
#### Instructions
141136

0 commit comments

Comments
 (0)