Skip to content

Instantly share code, notes, and snippets.

@ihgrant
Last active February 16, 2016 23:59
Show Gist options
  • Save ihgrant/7b5be7c755f70f3198bd to your computer and use it in GitHub Desktop.
Save ihgrant/7b5be7c755f70f3198bd to your computer and use it in GitHub Desktop.
var Question = React.createClass({
onChangeTitle: function (e) {
this.props.qTitleCallback(this.props.ordering, e);
},
onChangeType: function (e) {
this.props.qTypeCallback(this.props.ordering, e);
},
render: function() {
return (
<div>
<label htmlFor="title">Title</label>
<input id="qTitle" type="text"s
value={this.props.qTitle}
onChange={this.onChangeTitle}
/>
<label htmlFor="type">Type</label>
<input id="qType" type="text"
value={this.props.qType}
onChange={this.onChangeType} }
/>
</div>
);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment