01 2018 档案

摘要:In this lesson we'll look at React PowerPlug's <List /> component by refactoring a normal class component with state and handlers to a functional comp 阅读全文
posted @ 2018-01-31 03:13 Zhentiw 阅读(197) 评论(0) 推荐(0) 编辑
摘要:MST has a pretty unique feature: It allows you to capture private state on models, and manage this state by using lifecycle hooks. For example by sett 阅读全文
posted @ 2018-01-31 02:56 Zhentiw 阅读(231) 评论(0) 推荐(0) 编辑
摘要:In this lesson, we will look at Fragments and how they are useful in achieving a cleaner DOM structure without additional empty div elements. 阅读全文
posted @ 2018-01-30 03:54 Zhentiw 阅读(174) 评论(0) 推荐(0) 编辑
摘要:Let's stop hardcoding our initial state and fetch it from the server instead. In this lesson you will learn: Set up basic data fetching Leverage the a 阅读全文
posted @ 2018-01-30 03:40 Zhentiw 阅读(175) 评论(0) 推荐(0) 编辑
摘要:ES2017 added two new string functions. They are padStart and padEndfunctions. In this lesson, we will understand how to use these functions and a few 阅读全文
posted @ 2018-01-29 00:20 Zhentiw 阅读(346) 评论(0) 推荐(0) 编辑
摘要:In real life scenarios, many operations on our data are asynchronous. For example, because additional recourses need to get fetched. MST has first cla 阅读全文
posted @ 2018-01-28 23:15 Zhentiw 阅读(164) 评论(0) 推荐(0) 编辑
摘要:n this lesson, we will set up Hot Module Reloading(HMR), making it possible to load new definitions for React components and MST models and apply them 阅读全文
posted @ 2018-01-28 22:55 Zhentiw 阅读(123) 评论(0) 推荐(0) 编辑
摘要:For an optimal user and developer experience, storing state in local storage is often a must. In this lesson you will learn: Using onSnapshot to get n 阅读全文
posted @ 2018-01-28 22:47 Zhentiw 阅读(318) 评论(0) 推荐(0) 编辑
摘要:It is time to add new entries to the wishlist. We will achieve this by reusing forms and models we've built so far. In this lesson you will learn: MST 阅读全文
posted @ 2018-01-28 22:35 Zhentiw 阅读(234) 评论(0) 推荐(0) 编辑
摘要:In this lesson we will dive a bit more into the tree semantics of MST. In this lesson you will learn: Actions can only modify their own subtree The us 阅读全文
posted @ 2018-01-28 03:37 Zhentiw 阅读(226) 评论(0) 推荐(0) 编辑
摘要:We will expand our UI, and give the user the possibility to edit his wishlist. We will use the earlier defined actions. We also will use model clones 阅读全文
posted @ 2018-01-28 02:21 Zhentiw 阅读(618) 评论(0) 推荐(0) 编辑
摘要:If you try to use CSS Modules in TypeScript the same way you would use them in JavaScript, with webpack’s css-loader, you’ll see an error: ”TS2307: Ca 阅读全文
posted @ 2018-01-26 20:13 Zhentiw 阅读(483) 评论(0) 推荐(0) 编辑
摘要:The idea is change from: to: To do that, we need to modify tsconfig.json file: 阅读全文
posted @ 2018-01-26 03:22 Zhentiw 阅读(202) 评论(0) 推荐(0) 编辑
摘要:Redundant data or caching data is a constant source of bugs. MST adheres to the philosophy that no data that can be derived should ever get stored. In 阅读全文
posted @ 2018-01-24 22:07 Zhentiw 阅读(165) 评论(0) 推荐(0) 编辑
摘要:The for-await-of syntax is similar to the for-of iteration. The key difference is that it automatically awaits any promises generated by the iterator. 阅读全文
posted @ 2018-01-24 20:55 Zhentiw 阅读(377) 评论(0) 推荐(0) 编辑
摘要:Learn how to write a promise based delay function and then use it in async await to see how much it simplifies code over setTimeout. Lets say you want 阅读全文
posted @ 2018-01-24 20:09 Zhentiw 阅读(166) 评论(0) 推荐(0) 编辑
摘要:Testing models is straightforward. Especially because MST provides powerful tools to track exactly how your state changes over time. Track snapshots, 阅读全文
posted @ 2018-01-23 21:20 Zhentiw 阅读(938) 评论(0) 推荐(0) 编辑
摘要:Models are not just a nifty feature for type checking. They enable you to attach behavior to your actions in a straightforward and highly discoverable 阅读全文
posted @ 2018-01-23 20:18 Zhentiw 阅读(343) 评论(0) 推荐(0) 编辑
摘要:In this lesson, we introduce the running example of this course, a wishlist app. We will take a look at the core of mobx-state-tree (MST), models. Mod 阅读全文
posted @ 2018-01-23 19:48 Zhentiw 阅读(284) 评论(0) 推荐(0) 编辑
摘要:Compile time configuration options allow you to provide different kind of settings based on the environment you're building the Angular app for. You m 阅读全文
posted @ 2018-01-23 19:19 Zhentiw 阅读(145) 评论(0) 推荐(0) 编辑
摘要:It always again happens (especially in real world scenarios) that you need to configure your Angular app at runtime. That configuration might be fetch 阅读全文
posted @ 2018-01-23 02:43 Zhentiw 阅读(312) 评论(0) 推荐(0) 编辑
摘要:Quickly get up and running with sensible automated testing scenarios written in ES6. Installing and creating your first automated tests with TestCafe 阅读全文
posted @ 2018-01-23 01:09 Zhentiw 阅读(486) 评论(0) 推荐(0) 编辑
摘要:In this lesson we will refactor an existing UI update from a typical loading approach to an optimistic UI updateapproach to give our users a faster, m 阅读全文
posted @ 2018-01-22 17:48 Zhentiw 阅读(259) 评论(0) 推荐(0) 编辑
摘要:In Javascript, all function arguments are optional by default. That means if you ever forget to pass a critical parameter, the code will just fail wit 阅读全文
posted @ 2018-01-22 17:35 Zhentiw 阅读(267) 评论(0) 推荐(0) 编辑
摘要:Transducers remove the requirement of being lazy to optimize for things like take(10). However, it can still be useful to "bind" a collection to a set 阅读全文
posted @ 2018-01-17 21:44 Zhentiw 阅读(213) 评论(0) 推荐(0) 编辑
摘要:A frequent use case when transducing is to apply a transformation to items without changing the type of the collection. In this lesson, we'll create a 阅读全文
posted @ 2018-01-17 20:52 Zhentiw 阅读(223) 评论(0) 推荐(0) 编辑
摘要:Our transduce function is powerful but requires a lot of boilerplate. It would be nice if we had a way to transduce into arrays and objects without ha 阅读全文
posted @ 2018-01-17 20:24 Zhentiw 阅读(167) 评论(0) 推荐(0) 编辑
摘要:Let's you have $10000, and you inverst 4 stocks. ['SPY', 'IBM', 'XOM', 'GOOG']. The allocation is [0.4, 0.4, 0.1, 0.1] separately. The way to calculat 阅读全文
posted @ 2018-01-17 20:02 Zhentiw 阅读(314) 评论(0) 推荐(0) 编辑
摘要:So far we've been transducing by manually calling .reduce() on arrays, but we want to be able to transduce over other collection types as well. In thi 阅读全文
posted @ 2018-01-16 20:23 Zhentiw 阅读(232) 评论(0) 推荐(0) 编辑
摘要:To make our composition more readable and easier to name we are going to ceate a compose function we can use to avoid having to manually nest our tran 阅读全文
posted @ 2018-01-16 17:44 Zhentiw 阅读(191) 评论(0) 推荐(0) 编辑
摘要:React is great for diffing between Virtual-DOM and rendering it to the dom. It also offers a naïve solution for diffing state in terms of setState. Ho 阅读全文
posted @ 2018-01-15 01:25 Zhentiw 阅读(254) 评论(0) 推荐(0) 编辑
摘要:Immer is a tiny library that makes it possible to work with immutable data in JavaScript in a much more straight-forward way by operating on a tempora 阅读全文
posted @ 2018-01-15 01:16 Zhentiw 阅读(264) 评论(0) 推荐(0) 编辑
摘要:In this lesson you will learn how create a re-usable component that gives the user the ability to dismiss the keyboard whenever they tap outside of a 阅读全文
posted @ 2018-01-15 00:55 Zhentiw 阅读(468) 评论(0) 推荐(0) 编辑
摘要:This is an introduction to CSSinJS that doesn't require any JavaScript knowledge, just a basic CSS. It shows how to convert a very basic button writte 阅读全文
posted @ 2018-01-15 00:49 Zhentiw 阅读(365) 评论(0) 推荐(0) 编辑
摘要:In this lesson, you will learn how to use the SafeAreaView component to avoid the sensor cluster (the notch) and home activity indicator on the iPhone 阅读全文
posted @ 2018-01-12 02:43 Zhentiw 阅读(350) 评论(0) 推荐(0) 编辑
摘要:Configuring Google Fonts can be quite an annoying process to setup. Using Font Magician with PostCSS allows you simply generate proper @font-face decl 阅读全文
posted @ 2018-01-10 01:34 Zhentiw 阅读(296) 评论(0) 推荐(0) 编辑
摘要:Sploe = 2: means that SPY move up 1, ABC move up 2 Correlation: how close those dots close to the line. 阅读全文
posted @ 2018-01-09 02:57 Zhentiw 阅读(697) 评论(0) 推荐(0) 编辑
摘要:In this lesson, you will be introduced to Python generators. You will see how a generator can replace a common function and learn the benefits of doin 阅读全文
posted @ 2018-01-08 23:34 Zhentiw 阅读(238) 评论(0) 推荐(0) 编辑
摘要:This lesson walks through setting up a Poi project using PostCSS and the popular Tailwind library for building out your styles. Poi supports PostCSS o 阅读全文
posted @ 2018-01-05 01:12 Zhentiw 阅读(428) 评论(0) 推荐(0) 编辑
摘要:Ever wonder where those extra KB in your bundle are coming from? This lesson walks you through running Poi's build process. Then we'll add a bundle an 阅读全文
posted @ 2018-01-03 21:10 Zhentiw 阅读(321) 评论(0) 推荐(0) 编辑
摘要:Poi ships with many webpack loaders included, but you may run into scenarios where you'll need to customize and add your own. This lesson covers addin 阅读全文
posted @ 2018-01-03 21:02 Zhentiw 阅读(227) 评论(0) 推荐(0) 编辑
摘要:Poi uses the Vue babel presets by default, so there is no additional install required to get up-and-running. You can even use the .vue file format wit 阅读全文
posted @ 2018-01-03 03:14 Zhentiw 阅读(418) 评论(0) 推荐(0) 编辑
摘要:Developing React with Poi is as easy as adding the babel-preset-react-appto a .babelrc and installing React. This lesson will walk you through that qu 阅读全文
posted @ 2018-01-03 03:10 Zhentiw 阅读(162) 评论(0) 推荐(0) 编辑
摘要:Poi can easily launch an index.js file simply by running the poi command. This will launch a dev-server and automatically reload whenever you make cha 阅读全文
posted @ 2018-01-02 17:40 Zhentiw 阅读(136) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示