上一页 1 ··· 437 438 439 440 441 442 443 444 445 ··· 494 下一页
摘要: Code to be refactored: class FilterLink extends Component { componentDidMount() { const { store } = this.context; this.unsubscribe = store.subscribe(( 阅读全文
posted @ 2016-02-12 03:15 Zhentiw 阅读(362) 评论(0) 推荐(0)
摘要: Code to be refacted: const AddTodo = (props, { store }) => { let input; return ( <div> <input ref={node => { input = node; }} /> <button onClick={() = 阅读全文
posted @ 2016-02-12 02:43 Zhentiw 阅读(492) 评论(0) 推荐(0)
摘要: Currently in our main() function, we get click$ event. function main(sources) { const click$ = sources.DOM; const sinks = { DOM: click$ .startWith(nul 阅读全文
posted @ 2016-02-09 20:24 Zhentiw 阅读(250) 评论(0) 推荐(0)
摘要: Our previous toy DOM Driver is still primitive. We are only able to sends strings as the textContent of the container element. We cannot yet create he 阅读全文
posted @ 2016-02-09 19:37 Zhentiw 阅读(297) 评论(0) 推荐(0)
摘要: 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 阅读(282) 评论(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 阅读(571) 评论(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)
上一页 1 ··· 437 438 439 440 441 442 443 444 445 ··· 494 下一页