JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://fb.me/react-with-addons-0.9.0.js"></script>
<script src="http://fb.me/JSXTransformer-0.9.0.js"></script>
<script src="http://fb.me/react-js-fiddle-integration.js"></script>
JavaScript 1.7
var DOM, myComponent;
DOM = React.DOM;
myComponent = React.createClass({
render: function() {
return DOM.div({
className: "app",
ref: "app"
}, DOM.div({
className: "child1"
}, {this.props.data}), DOM.div({
className: "child2",
key: "child2"
}, "Hello"));
}
});
React.renderComponent(myComponent({data:"gill"}), document.body);