摘要: In the previous lesson we created a reducer that can handle two actions, adding a new to-do, and toggling an existing to-do. Right now, the code to up... 阅读全文
posted @ 2015-12-02 02:32 Zhentiw 阅读(395) 评论(0) 推荐(0) 编辑
摘要: Learn how to implement toggling a todo in a todo list application reducer.let todo = (state = [], action) => { switch(action.type){ case 'ADD_IT... 阅读全文
posted @ 2015-12-02 02:18 Zhentiw 阅读(275) 评论(0) 推荐(0) 编辑
摘要: Learn how to implement adding a todo in a todo list application reducer.let todo = (state = [], action) => { switch(action.type){ case 'ADD_ITEM... 阅读全文
posted @ 2015-12-02 01:53 Zhentiw 阅读(160) 评论(0) 推荐(0) 编辑