上一页 1 ··· 424 425 426 427 428 429 430 431 432 ··· 480 下一页
摘要: 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 阅读(148) 评论(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 阅读(196) 评论(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 阅读(259) 评论(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 阅读(184) 评论(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 阅读(321) 评论(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 阅读(217) 评论(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 阅读(251) 评论(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 阅读(161) 评论(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 阅读(176) 评论(0) 推荐(0) 编辑
摘要: In this lesson we'll learn shorthands for common character classes as well as their negated forms. var str = `Afewserg, %8392 ?AWE`; var regex = /[a-z 阅读全文
posted @ 2016-02-01 03:22 Zhentiw 阅读(161) 评论(0) 推荐(0) 编辑
上一页 1 ··· 424 425 426 427 428 429 430 431 432 ··· 480 下一页