上一页 1 ··· 204 205 206 207 208 209 210 211 212 ··· 491 下一页
摘要: Let's say we have App.component.ts, it use provider inside component level: @Component({ selector: 'app-root', templateUrl: './app.component.html', st 阅读全文
posted @ 2020-03-14 04:37 Zhentiw 阅读(160) 评论(0) 推荐(0)
摘要: Rules Each page should have at least one <h1> Pages should be structured in a hierarchical manner <h1>: being the most important (usually page titles 阅读全文
posted @ 2020-03-13 16:28 Zhentiw 阅读(118) 评论(0) 推荐(0)
摘要: Reader Monad Continue with previous post, here we have some helper functions: const toUpper = s => s.toUpperCase(); const exclaim = s => `${s}!`; And 阅读全文
posted @ 2020-03-13 04:10 Zhentiw 阅读(226) 评论(0) 推荐(0)
摘要: Let's say we have two fucntions: const toUpper = s => s.toUpperCase(); const exclaim = s => `${s}!`; We want to combine those. But function itself doe 阅读全文
posted @ 2020-03-13 03:39 Zhentiw 阅读(149) 评论(0) 推荐(0)
摘要: 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 阅读(269) 评论(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 阅读(171) 评论(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 阅读(189) 评论(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 阅读(223) 评论(0) 推荐(0)
摘要: MECE:Mutually exclusive collectively exhaustive, 相互独立,完全穷尽,“不重叠,不遗漏” -- 《金字塔原理》Barbara Minto 如何避免在做汇报时,逻辑层次混乱?-- MECE 如何理解,不重叠,不遗漏? 例如:“把目标用户都列出来:男人,小 阅读全文
posted @ 2020-03-09 03:19 Zhentiw 阅读(848) 评论(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 阅读(103) 评论(0) 推荐(0)
上一页 1 ··· 204 205 206 207 208 209 210 211 212 ··· 491 下一页