@samitouri / QOS-React-2 / commits / dd14fdfdc5
Fork 0

The library for web and native user interfaces.

todo fix

Cheng Lou committed Jul 17, 2013 at 16:28 UTC dd14fdfdc57d9a0dd9eeb10d83daacce77a2aaa3
1 file changed +2 -2
docs/_js/examples/todo.js
+2 -2
@@ -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\
33 + <form onSubmit={this.handleSubmit}>\n\
34 + <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\