上一页 1 ··· 436 437 438 439 440 441 442 443 444 ··· 491 下一页
摘要: 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 阅读(264) 评论(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 阅读(192) 评论(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 阅读(325) 评论(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 阅读(220) 评论(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 阅读(253) 评论(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 阅读(167) 评论(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 阅读(179) 评论(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 阅读(167) 评论(0) 推荐(0)
摘要: Regular Expression Character Classes define a group of characters we can use in conjunction with quantifiers. var str = `cat bat mat Hat 0at ?at`; var 阅读全文
posted @ 2016-02-01 03:14 Zhentiw 阅读(183) 评论(0) 推荐(0)
摘要: Regular Expression Quantifiers allow us to identify a repeating sequence of characters of minimum and maximum lengths. In this lesson we'll use Regula 阅读全文
posted @ 2016-02-01 03:07 Zhentiw 阅读(227) 评论(0) 推荐(0)
上一页 1 ··· 436 437 438 439 440 441 442 443 444 ··· 491 下一页