Well, the way you should do it is abandon .jsx completely, and just stick to .coffee.
Something like this:
React.createClass
render: ->
{div, h1, span} = require 'reactionary'
div class: 'home',
h1 "Hows it going!"
Clean and simple, particularly with CoffeeScripts default return.
As far as templates go -- and this is what I always tell people -- structure your code in a clean way which makes the render function pop out and you might as well be working with a separate file! It really does make more sense after a while.
Something like this:
React.createClass
Clean and simple, particularly with CoffeeScripts default return.As far as templates go -- and this is what I always tell people -- structure your code in a clean way which makes the render function pop out and you might as well be working with a separate file! It really does make more sense after a while.