JSFiddle - React, Tailwind, and code Playground

by vjeux

HTML

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

JavaScript 1.7

/** @jsx React.DOM */

var Hello = React.createClass({
    componentDidMount: function() {
        setInterval(function() {
            this.forceUpdate();
        }.bind(this), 10);
    },
    render: function() {
        return <div dangerouslySetInnerHTML={{__html: '<strong>dangerous! ' + Math.random() + '</strong>'}}></div>;
    }
});
 
React.renderComponent(<Hello name="World" />, document.body);