JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://fb.me/react-js-fiddle-integration.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/react/0.4.1/react.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/react/0.4.1/JSXTransformer.js"></script>
JavaScript 1.7
/** @jsx React.DOM */
var C = React.createClass({
getInitialState: function() {
return {visible: false};
},
componentDidMount: function() {
var component = this;
setTimeout(function() {
component.setState({visible: true});
}, 1000);
},
render: function() {
return <svg width={100} height={100}>
{this.state.visible && <circle cx={50} cy={50} r={40} />}
</svg>;
}
});
React.renderComponent(<C />, document.body);