上一页 1 ··· 211 212 213 214 215 216 217 218 219 ··· 498 下一页
摘要: useState is typically simpler at first than useReducer (you can even implement useState using useReducer), but there's one scenario where useReducer i 阅读全文
posted @ 2020-03-11 17:56 Zhentiw 阅读(272) 评论(0) 推荐(0)
摘要: Learn how to use custom events to expose internal events from withing a web component. class MyWelcome extends HTMLElement { constructor() { super(); 阅读全文
posted @ 2020-03-11 16:31 Zhentiw 阅读(173) 评论(0) 推荐(0)
摘要: We want to write a Monoid, which able to take function called 'run', therefore we able to run a serial of functions together to get a combined result. 阅读全文
posted @ 2020-03-10 18:09 Zhentiw 阅读(194) 评论(0) 推荐(0)
摘要: const [state, dispatch] = useReducer(reducer, initialArg, init); The third arguement 'init' is a lazy initialization which is a function. It is useful 阅读全文
posted @ 2020-03-10 16:35 Zhentiw 阅读(225) 评论(0) 推荐(0)
摘要: MECE:Mutually exclusive collectively exhaustive, 相互独立,完全穷尽,“不重叠,不遗漏” -- 《金字塔原理》Barbara Minto 如何避免在做汇报时,逻辑层次混乱?-- MECE 如何理解,不重叠,不遗漏? 例如:“把目标用户都列出来:男人,小 阅读全文
posted @ 2020-03-09 03:19 Zhentiw 阅读(861) 评论(0) 推荐(0)
摘要: As a user, it can be very disorienting when the "wrong" UI is briefly shown to the user: a login link is shown to an authenticated user, or a 404 erro 阅读全文
posted @ 2020-03-08 04:02 Zhentiw 阅读(105) 评论(0) 推荐(0)
摘要: For example, we want to show loading spinner inside our appliction component trees. Because we might trigger loading spinner anywhere inside our appli 阅读全文
posted @ 2020-03-07 00:20 Zhentiw 阅读(429) 评论(0) 推荐(0)
摘要: When new to Reactive programming with Angular. It is easy to fall into a performance issue, which is sending multi same http request to the backend. I 阅读全文
posted @ 2020-03-05 21:31 Zhentiw 阅读(364) 评论(0) 推荐(0)
摘要: For example we have following code: $(el).hide() // el.style.display = 'none' $(el).forEach(() => {}) foo.hide() We want $(el).hide() replace with: el 阅读全文
posted @ 2020-03-05 17:58 Zhentiw 阅读(141) 评论(0) 推荐(0)
摘要: Are you using z? Greatly speed up your file system traversal and say goodbye to finder. Install: brew install z 2. Go the github: https://github.com/r 阅读全文
posted @ 2020-03-05 03:12 Zhentiw 阅读(213) 评论(0) 推荐(0)
上一页 1 ··· 211 212 213 214 215 216 217 218 219 ··· 498 下一页