摘要: Local Storage is a native JavaScript Web API that makes it easy to store and persist data (as key-value pairs) in the Browser. In this lesson, we'll w 阅读全文
posted @ 2016-01-27 21:44 Zhentiw 阅读(163) 评论(0) 推荐(0)
摘要: JSON (JavaScript Object Notation) is a standard method to serialize JavaScript objects and is commonly used to transfer data from the server to the br 阅读全文
posted @ 2016-01-27 20:31 Zhentiw 阅读(228) 评论(0) 推荐(0)
摘要: Finally, I just noticed that the to-do app component doesn't actually have to be a class. I can turn it into a function. I prefer to-do that when poss 阅读全文
posted @ 2016-01-27 20:18 Zhentiw 阅读(198) 评论(0) 推荐(0)
摘要: Code to be refactored: let nextTodoId = 0; class TodoApp extends Component { render() { const { todos, visibilityFilter } = this.props; const visibleT 阅读全文
posted @ 2016-01-27 20:10 Zhentiw 阅读(318) 评论(0) 推荐(0)
摘要: Code to be refactored: let nextTodoId = 0; class TodoApp extends Component { render() { const { todos, visibilityFilter } = this.props; const visibleT 阅读全文
posted @ 2016-01-27 19:09 Zhentiw 阅读(217) 评论(0) 推荐(0)
摘要: The code to be refactored: let nextTodoId = 0; class TodoApp extends Component { render() { const { todos, visibilityFilter } = this.props; const visi 阅读全文
posted @ 2016-01-27 18:22 Zhentiw 阅读(196) 评论(0) 推荐(0)