上一页 1 ··· 439 440 441 442 443 444 445 446 447 ··· 495 下一页
摘要: Learn how to use the that comes with React Redux instead of the hand-rolled implementation from the previous lesson. Code to be refactored: class Visi 阅读全文
posted @ 2016-02-09 03:17 Zhentiw 阅读(283) 评论(0) 推荐(0)
摘要: Remove: remove the wand with the name of "Doom Bringer" from our wandscollection. db.wands.remove({name: "Doom Bringer"}) >> WriteResult({'ngRemoved': 阅读全文
posted @ 2016-02-09 00:26 Zhentiw 阅读(387) 评论(0) 推荐(0)
摘要: When doing search function, you always need to consider about the concurrent requests. AEvent ----(6s)---> AResult ------(100ms)------- BEvent -----(1 阅读全文
posted @ 2016-02-08 21:39 Zhentiw 阅读(299) 评论(0) 推荐(0)
摘要: Previously, we wrote the Provider component by ourself: class Provider extends Component { getChildContext() { return { store: this.props.store }; } r 阅读全文
posted @ 2016-02-08 03:18 Zhentiw 阅读(572) 评论(0) 推荐(0)
摘要: We have to write a lot of boiler plate code to pass this chore down as a prop. But there is another way, using the advanced React feature called conte 阅读全文
posted @ 2016-02-05 22:27 Zhentiw 阅读(432) 评论(0) 推荐(0)
摘要: n the previous lessons, we used this tool to up level variable to refer to the Redux chore. The components that access this chore, such as the contain 阅读全文
posted @ 2016-02-05 19:17 Zhentiw 阅读(285) 评论(0) 推荐(0)
摘要: describe( 'Forgot Password: with username', ()=> { let dirElementInput; beforeEach( ()=> { // Find the input control: dirElementInput = directiveElem. 阅读全文
posted @ 2016-02-04 20:26 Zhentiw 阅读(266) 评论(0) 推荐(0)
摘要: Our application was able to produce write effects, through sinks, and was able to receive read effects, through the DOM sources. However, the main fun 阅读全文
posted @ 2016-02-04 17:44 Zhentiw 阅读(159) 评论(0) 推荐(0)
摘要: Clean TodoApp Component, it doesn't need to receive any props from the top level component: const TodoApp = () => ( <div> <AddTodo /> <VisibleTodoList 阅读全文
posted @ 2016-02-04 16:14 Zhentiw 阅读(204) 评论(0) 推荐(0)
摘要: Code to be refactored: const AddTodo = ({ onAddClick }) => { let input; return ( <div> <input ref={node => { input = node; }} /> <button onClick={() = 阅读全文
posted @ 2016-02-04 16:00 Zhentiw 阅读(270) 评论(0) 推荐(0)
上一页 1 ··· 439 440 441 442 443 444 445 446 447 ··· 495 下一页