上一页 1 ··· 438 439 440 441 442 443 444 445 446 ··· 494 下一页
摘要: describe( 'Forgot Password: with username', ()=> { let dirElementInput; beforeEach( ()=> { // Find the input control: dirElementInput = directiveElem. 阅读全文
posted @ 2016-02-04 20:26 Zhentiw 阅读(265) 评论(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 阅读(202) 评论(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 阅读(268) 评论(0) 推荐(0)
摘要: Code to be refacted: const TodoList = ({ todos, onTodoClick }) => ( <ul> {todos.map(todo => <Todo key={todo.id} {...todo} onClick={() => onTodoClick(t 阅读全文
posted @ 2016-02-04 15:39 Zhentiw 阅读(194) 评论(0) 推荐(0)
摘要: The CSS :not() selector allows us to exclude a subset of elements matched by our selector. In this example we refactor two selectors down to one using 阅读全文
posted @ 2016-02-04 05:49 Zhentiw 阅读(328) 评论(0) 推荐(0)
摘要: So far we only had effects that write something to the external world, we are not yet reading anything from the external world into our app. This less 阅读全文
posted @ 2016-02-02 23:11 Zhentiw 阅读(221) 评论(0) 推荐(0)
摘要: Currently the code looks like : // Logic (functional) function main() { return { DOM: Rx.Observable.timer(0, 1000) .map(i => `Seconds elapsed ${i}`), 阅读全文
posted @ 2016-02-02 17:10 Zhentiw 阅读(255) 评论(0) 推荐(0)
摘要: How can we show one string on the DOM, and a completely different string on Console log? This lesson shows how we can make our main function return mu 阅读全文
posted @ 2016-02-02 07:00 Zhentiw 阅读(168) 评论(0) 推荐(0)
摘要: We need to give structure to our application with logic and effects. This lessons shows how we can organize our code into two parts: main() function f 阅读全文
posted @ 2016-02-02 06:54 Zhentiw 阅读(180) 评论(0) 推荐(0)
上一页 1 ··· 438 439 440 441 442 443 444 445 446 ··· 494 下一页