We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc6a567 commit dd14fdfCopy full SHA for dd14fdf
docs/_js/examples/todo.js
@@ -30,8 +30,8 @@ var TodoApp = React.createClass({\n\
30
<div>\n\
31
<h3>TODO</h3>\n\
32
<TodoList items={this.state.items} />\n\
33
- <form onSubmit={this.handleSubmit.bind(this)}>\n\
34
- <input onKeyUp={this.onKey.bind(this)} value={this.state.text} />\n\
+ <form onSubmit={this.handleSubmit}>\n\
+ <input onKeyUp={this.onKey} defaultValue={this.state.text} />\n\
35
<button>{'Add #' + (this.state.items.length + 1)}</button>\n\
36
</form>\n\
37
</div>\n\
0 commit comments