JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://fb.me/JSXTransformer-0.8.0.js"></script>
<script src="http://react.zpao.com/builds/master/latest/react-with-addons.js"></script>
<script src="http://fb.me/react-js-fiddle-integration.js"></script>
JavaScript 1.7
/** @jsx React.DOM */
var Hello = React.createClass({
componentWillMount: function() {
throw new Error("componentDidMount should not be run for server render");
},
render: function() {
return this.props.children();
}
});
var s = React.renderComponentToString(
Hello(null, function() { return React.DOM.div(null, "Hello"); })
);
console.log(s);