JSFiddle - React, Tailwind, and code Playground

by also

HTML

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

JavaScript 1.7

AsyncLoader = React.createClass({
  render: function() { return null },

  update: function() {
    this.setState({setTimeout: true});
  },

  componentDidMount: function() {
    setTimeout(this.update, 2000);
  }
});


Application = React.createClass({
  getInitialState: function() {
    return {visible: true};
  },

  render: function() {
    return this.state.visible ? <AsyncLoader /> : null;
  },

  update: function() {
    this.setState({visible: false});
  },

  componentDidMount: function() {
    setTimeout(this.update, 1000);
  }
});

React.render(<Application />, document.body);