Ruby React JSX Compiler
Ruby React JSX Compiler is a bridge to the official React JSX compiler
(Please, refer to http://facebook.github.io/react/docs/getting-started.html for more details)
Installation
Run the command below to install the gem:
gem install react-jsx
or add the line below to your Gemfile:
gem 'react-jsx', require: 'react/jsx'
Usage
require 'react/jsx'
# Some JSX code
jsx = <<-EOF
  /** @jsx React.DOM */
  React.renderComponent(
    <h1>Hello, world!</h1>,
    document.getElementById('example')
  );
EOF
js = React::JSX.compile(jsx)
React sources
This library depends on the react-source gem which is updated any time a new version of React is released.
(Please, refer to https://github.com/facebook/react for more details)
License
Copyright © 2013 Alexey Demin, MIT License