@ -15,7 +15,7 @@ Consider the case when you wish to tell an `<input />` element (that exists with
getInitialState: function() {
getInitialState: function() {
return {userInput: ''};
return {userInput: ''};
},
},
handleKeyUp : function(e) {
handleChange : function(e) {
this.setState({userInput: e.target.value});
this.setState({userInput: e.target.value});
},
},
clearAndFocusInput: function() {
clearAndFocusInput: function() {
@ -30,7 +30,7 @@ Consider the case when you wish to tell an `<input />` element (that exists with
< / div >
< / div >
< input
< input
value={this.state.userInput}
value={this.state.userInput}
onKeyUp={this.handleKeyUp }
onChange={this.handleChange }
/>
/>
< / div >
< / div >
);
);
@ -91,7 +91,7 @@ It's as simple as:
getInitialState: function() {
getInitialState: function() {
return {userInput: ''};
return {userInput: ''};
},
},
handleKeyUp : function(e) {
handleChange : function(e) {
this.setState({userInput: e.target.value});
this.setState({userInput: e.target.value});
},
},
clearAndFocusInput: function() {
clearAndFocusInput: function() {
@ -107,7 +107,7 @@ It's as simple as:
< input
< input
ref="theInput"
ref="theInput"
value={this.state.userInput}
value={this.state.userInput}
onKeyUp={this.handleKeyUp }
onChange={this.handleChange }
/>
/>
< / div >
< / div >
);
);