Skip to content

Commit dd14fdf

Browse files
committed
todo fix
1 parent fc6a567 commit dd14fdf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/_js/examples/todo.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ var TodoApp = React.createClass({\n\
3030
<div>\n\
3131
<h3>TODO</h3>\n\
3232
<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\
33+
<form onSubmit={this.handleSubmit}>\n\
34+
<input onKeyUp={this.onKey} defaultValue={this.state.text} />\n\
3535
<button>{'Add #' + (this.state.items.length + 1)}</button>\n\
3636
</form>\n\
3737
</div>\n\

0 commit comments

Comments
 (0)