JSFiddle - React, Tailwind, and code Playground
by vjeux
HTML
<script src="http://fb.me/JSXTransformer-0.10.0.js"></script>
<script src="http://fb.me/react-with-addons-0.10.0.js"></script>
<script src="http://fb.me/react-js-fiddle-integration.js"></script>
JavaScript 1.7
/** @jsx React.DOM */
var Hello = React.createClass({
componentWillMount: function() {
console.log('componentWillMount');
},
componentDidMount: function() {
console.log('componentDidMount');
},
getInitialState: function() {
console.log('getInitialState');
return {};
},
render: function() {
return <div>Hello {this.props.name}</div>;
}
});
React.renderComponentToString(<Hello name="World" />, document.body);