JSFiddle - React, Tailwind, and code Playground
by koba04
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
var ImmutableText = React.createClass({
getInitialState: function() {
return {
textValue: "initial value"
};
},
render: function() {
return (
<div>
<p>{this.state.textValue}</p>
<input type="text" value={this.state.textValue} />
<input type="text" value="initial value" />
</div>
);
}
});
React.render(<ImmutableText />, document.body);