Browse Source

todo fix

main
Cheng Lou 12 years ago
parent
commit
bdd6911dff
  1. 4
      _js/examples/todo.js

4
_js/examples/todo.js

@ -30,8 +30,8 @@ var TodoApp = React.createClass({\n\
<div>\n\ <div>\n\
<h3>TODO</h3>\n\ <h3>TODO</h3>\n\
<TodoList items={this.state.items} />\n\ <TodoList items={this.state.items} />\n\
<form onSubmit={this.handleSubmit.bind(this)}>\n\ <form onSubmit={this.handleSubmit}>\n\
<input onKeyUp={this.onKey.bind(this)} value={this.state.text} />\n\ <input onKeyUp={this.onKey} defaultValue={this.state.text} />\n\
<button>{'Add #' + (this.state.items.length + 1)}</button>\n\ <button>{'Add #' + (this.state.items.length + 1)}</button>\n\
</form>\n\ </form>\n\
</div>\n\ </div>\n\

Loading…
Cancel
Save