React Base Fiddle (JSX)
Starting point for creating JSFiddles with React. This uses React with Addons.
HTML
<script src="http://fb.me/JSXTransformer-0.12.1.js"></script>
<script src="http://fb.me/react-with-addons-0.12.1.js"></script>
<script src="http://facebook.github.io/react/js/jsfiddle-integration.js"></script>
JavaScript 1.7
var PromotedList = React.createClass({
render: function() {
return <ul>
<li>Promoted Tweet</li>
{this.props.tweets}
</ul>
}
});
var myTweets = [<li>My Tweet One</li>, <li>My Tweet Two</li>]
React.render(<PromotedList tweets={myTweets} />, document.body);