1 getInitialState: function() {
2 return {value: 'Hello!'};
3 },
4 handleChange: function(event) {
5 this.setState({value: event.target.value});
6 },
7 render: function() {
8 return (
9 <input
10 type="text"
11 value={this.state.value}
12 onChange={this.handleChange}
13 />
14 );
15 }
16