JSFiddle - React, Tailwind, and code Playground
by spicyj
HTML
<script src="http://fb.me/react-js-fiddle-integration.js"></script>
JavaScript 1.7
/** @jsx React.DOM */
var Hello = React.createClass({
getInitialState: function() {
return {
text: ""
};
},
handleChange: function(e) {
this.setState({text: e.target.value});
},
render: function() {
return <div><input value={this.state.text} onKeyUp={this.handleChange} /></div>;
}
});
React.renderComponent(<Hello />, document.body);