Skip to content

Commit e282c7b

Browse files
committed
update VERSIONS.md
1 parent 19a046f commit e282c7b

File tree

1 file changed

+3
-26
lines changed

1 file changed

+3
-26
lines changed

VERSIONS.md

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,21 @@
11
# Versions
22

3-
There are three ways to control what version of React.js (and JSXTransformer) is used by `react-rails`:
3+
You can control what version of React.js (and JSXTransformer) is used by `react-rails`:
44

55
- Use the [bundled version](#bundled-versions) that comes with the gem
6-
- Specify a [react-source version](#react-source-version)
76
- [Drop in a copy](#drop-in-version) of React.js
87

98
## Bundled Versions
109

1110
| Gem | React.js |
1211
|----------|----------|
13-
| master | ~> 0.13 |
12+
| master | 0.13.3 |
1413
| 1.0.0 | ~> 0.13 |
1514
| 0.13.0.0 | 0.13.0 |
1615
| 0.12.2.0 | 0.12.2 |
1716
| 0.12.1.0 | 0.12.1 |
1817
| 0.12.0.0 | 0.12.0 |
1918

20-
21-
## React-Source Version
22-
23-
The [`react-source` gem](https://rubygems.org/gems/react-source) provides JS files to `react-rails`.
24-
25-
You can specify a React.js version by locking to a specific `react-source` in your Gemfile. For example:
26-
27-
```ruby
28-
gem 'react-rails'
29-
# always use React version 0.13.1:
30-
gem 'react-source', '0.13.1'
31-
```
32-
3319
## Drop-in Version
3420

35-
You can also provide your own copies of React.js and JSXTransformer. Just add `react.js` or `JSXTransformer.js` (case-sensitive) files in directories where `react-rails` expects to find them.
36-
37-
To use the _same version in all environments_, put files in `app/vendor/assets/react/`.
38-
39-
If you need _different versions in different environments_, put them in directories that match `config.react.variant`. For example, if you set `config.react.variant = :development`, you could put a copy of `react.js` in `app/vendor/assets/react/development/`.
40-
41-
42-
43-
44-
21+
You can also provide your own copies of React.js and JSXTransformer. Just add `react.js` or `JSXTransformer.js` (case-sensitive) files to the asset pipeline (eg, `app/assets/vendor/`).

0 commit comments

Comments
 (0)