JSFiddle - React, Tailwind, and code Playground
by jrweinb
HTML
<script src="http://fb.me/react-with-addons-0.11.0.js"></script>
<script src="http://fb.me/JSXTransformer-0.11.0.js"></script>
<script src="http://fb.me/react-js-fiddle-integration.js"></script>
JavaScript 1.7
/** @jsx React.DOM */
var Hello = React.createClass({
render: function() {
return <this.props.component.slug className='text'>
{this.props.component.value}
</this.props.component.slug>;
}
});
var Hello2 = React.createClass({
render: function() {
return (
<div><h1>{this.props.children}</h1></div>
)
}
});
React.renderComponent(<Hello component={{slug:Hello2, value:'This is my headrrer'}} />, document.body);