上一页 1 ··· 368 369 370 371 372 373 374 375 376 ··· 491 下一页
摘要: Running multiple scripts in series or in parallel can become very verbose. Using a tool such as npm-run-all can help reduce the amount of overhead you 阅读全文
posted @ 2017-02-03 21:48 Zhentiw 阅读(244) 评论(0) 推荐(0)
摘要: In this lesson we will look at running several npm scripts in parallel. Sometimes you don’t need scripts to be run in series and switching them to run 阅读全文
posted @ 2017-02-03 21:43 Zhentiw 阅读(271) 评论(0) 推荐(0)
摘要: After creating several npm script it becomes useful to run multiple scripts back-to-back in series. This is a nice feature because you can enforce tha 阅读全文
posted @ 2017-02-03 21:37 Zhentiw 阅读(175) 评论(0) 推荐(0)
摘要: Using pushState and passing route data via context allows our application to respond to route changes made from Link components, but using the back an 阅读全文
posted @ 2017-02-03 18:18 Zhentiw 阅读(501) 评论(0) 推荐(0)
摘要: We’ll create a Router component that will wrap our application and manage all URL related state. We’ll see how we can use React’s built in context mec 阅读全文
posted @ 2017-02-03 16:46 Zhentiw 阅读(267) 评论(0) 推荐(0)
摘要: const _pipe = (f, g) => (...args) => g(f(...args)) export const pipe = (...fns) => fns.reduce(_pipe) import {partial, pipe} from './utils' const add = (a, b) => a + b const addThree = (a, b, c)... 阅读全文
posted @ 2017-02-02 19:44 Zhentiw 阅读(245) 评论(0) 推荐(0)
摘要: In this lesson we’ll see how to pass an item’s id value in an event handler and get the state to reflect our change. We’ll also create a helper functi 阅读全文
posted @ 2017-02-02 17:04 Zhentiw 阅读(287) 评论(0) 推荐(0)
摘要: Example 1: A never stop while loop return a never type. Example 2: Never run If block You can use this to do exhaustive checks in union types. For exa 阅读全文
posted @ 2017-02-01 01:36 Zhentiw 阅读(232) 评论(0) 推荐(0)
摘要: Add functional function such as change state, this should have tests covered. For example, in a component, there is a function call 'addBox': Here we 阅读全文
posted @ 2017-01-31 21:11 Zhentiw 阅读(165) 评论(0) 推荐(0)
摘要: In React app, you might create lots of components. We can use index.js to do both 'import' & 'export'. When using it, we just need to import the folde 阅读全文
posted @ 2017-01-31 20:08 Zhentiw 阅读(176) 评论(0) 推荐(0)
上一页 1 ··· 368 369 370 371 372 373 374 375 376 ··· 491 下一页