README.md in react-rails-0.11.1.0 vs README.md in react-rails-0.12.0.0
- old
+ new
@@ -15,11 +15,11 @@
As with all gem dependencies, we strongly recommend adding `react-rails` to your `Gemfile` and using `bundler` to manage your application's dependencies.
```ruby
# Gemfile
-gem 'react-rails', '~> 0.10.0.0'
+gem 'react-rails', '~> 0.12.0.0'
```
## Usage
@@ -44,11 +44,11 @@
```
### JSX
-To transform your JSX into JS, simply create `.js.jsx` files, and ensure that the file has the `/** @jsx React.DOM */` docblock. These files will be transformed on request, or precompiled as part of the `assets:precompile` task.
+To transform your JSX into JS, simply create `.js.jsx` files. These files will be transformed on request, or precompiled as part of the `assets:precompile` task.
## Configuring
### Variants
@@ -78,14 +78,12 @@
```
## CoffeeScript
-It is possible to use JSX with CoffeeScript. The caveat is that you will still need to include the docblock. Since CoffeeScript doesn't allow `/* */` style comments, we need to do something a little different. We also need to embed JSX inside backticks so CoffeeScript ignores the syntax it doesn't understand. Here's an example:
+It is possible to use JSX with CoffeeScript. We need to embed JSX inside backticks so CoffeeScript ignores the syntax it doesn't understand. Here's an example:
```coffee
-###* @jsx React.DOM ###
-
Component = React.createClass
render: ->
`<ExampleComponent videos={this.props.videos} />`
```