sprockets-coffee-react
v2.4.1
Published
= sprockets-coffee-react
Downloads
3
Readme
= sprockets-coffee-react
== Compatibility sprockets-coffee-react 2.x is compatible with react ^0.12.0
sprockets-coffee-react 0.x is compatible with react <=0.11.0
== How to use
Add this to your Gemfile:
gem 'sprockets-coffee-react'
Place a .js.coffee.cjsx or .js.cjsx file (or a .js.coffee file with a @cjsx pragma) in your assets directory. When you require it into other JS files the CJSX markup will be transformed and compiled to Javascript.
Eg. if you have a file called my-component.js.coffee which contains some CJSX code, require it from application.js or somewhere else:
//= require my-component
== License
Released under the MIT License. See the LICENSE file for further details.