JSFiddle - React, Tailwind, and code Playground

by vjeux

HTML

<script src="http://fb.me/react-with-addons-0.8.0.js"></script>
<script src="http://fb.me/JSXTransformer-0.8.0.js"></script>
<script src="http://fb.me/react-js-fiddle-integration.js"></script>

JavaScript 1.7

/** @jsx React.DOM */

var Hello = React.createClass({
    componentDidMount: function() {
        console.log('did mount');
    },
    render: function() {
        return <div>Hello {this.props.name}</div>;
    }
});
 
React.renderComponent(<div><Hello key="a" /></div>, document.body);
React.renderComponent(<div><Hello key="a" /></div>, document.body);
React.renderComponent(<div><Hello key="b" /></div>, document.body);