README.md in react-rails-1.9.0 vs README.md in react-rails-1.10.0

- old
+ new

@@ -90,11 +90,11 @@ After installing `react-rails`, restart your server. Now, `.js.jsx` files will be transformed in the asset pipeline. #### BabelTransformer options -You can use babel's [transformers](http://babeljs.io/docs/advanced/transformers/) and [custom plugins](http://babeljs.io/docs/advanced/plugins/), +You can use babel's [transformers](http://henryzoo.com/babel.github.io/docs/advanced/transformers/) and [custom plugins](http://henryzoo.com/babel.github.io/docs/advanced/plugins/), and pass [options](http://babeljs.io/docs/usage/options/) to the babel transpiler adding following configurations: ```ruby config.react.jsx_transform_options = { blacklist: ['spec.functionName', 'validation.react', 'strict'], # default options @@ -201,10 +201,16 @@ MyApp::Application.configure do config.react.camelize_props = true #default false end ``` +or when mounting: + +```erb +<%= react_component('HelloMessage', {name: 'John'}, {camelize_props: true}) %> +``` + ### Rendering components instead of views Components can also be prerendered directly from a controller action with the custom `component` renderer. For example: ```ruby @@ -379,10 +385,10 @@ `react-rails` provides two transformers, `React::JSX::JSXTransformer` and `React::JSX::BabelTransformer`. ### Related Projects - [react\_on\_rails Gem](https://github.com/shakacode/react_on_rails): Webpack Integration of React with Rails utilizing the modern JavaScript tooling and libraries, including Webpack, Babel, React, Redux, React-Router. You can an example of this live at [www.reactrails.com](http://www.reactrails.com). -- [React.rb](http://reactrb.org/): Use Ruby to build reactive user interfaces with React under the covers.[github source code here](https://github.com/zetachang/react.rb). +- [Ruby Hyperloop](http://ruby-hyperloop.io/): Use Ruby to build reactive user interfaces with React. - [react-rails-hot-loader](https://github.com/rmosolgo/react-rails-hot-loader) is a simple live-reloader for `react-rails`. - [react-rails-benchmark_renderer](https://github.com/pboling/react-rails-benchmark_renderer) adds performance instrumentation to server rendering. ## Development