Skip to content

Instantly share code, notes, and snippets.

@vjeux
Forked from petehunt/gist:6689857
Last active December 23, 2015 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vjeux/6690004 to your computer and use it in GitHub Desktop.
Save vjeux/6690004 to your computer and use it in GitHub Desktop.
/** @jsx React.DOM */
var Hello = React.createClass({
mixins: [LinkedStateMixin],
getInitialState: function() {
return {name: 'phunt'};
},
render: function() {
return (
<div>
<input type="text" value={this.state.name} onChange={this.onChange('name')} />
{this.state.name}
</div>
);
}
});
React.renderComponent(<Hello />, document.body);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment