上一页 1 ··· 313 314 315 316 317 318 319 320 321 ··· 499 下一页
摘要: In this lesson, I use Enzyme and Jest to unit test a Counter Render Prop component. Writing integration tests are perfect for components that consume 阅读全文
posted @ 2018-02-22 01:15 Zhentiw 阅读(546) 评论(0) 推荐(0)
摘要: Take few examples: Full size image: The problem for that is it overflow when the screen size is smaller than the image size. (BAD) width: 100%: The pr 阅读全文
posted @ 2018-02-21 22:09 Zhentiw 阅读(244) 评论(0) 推荐(0)
摘要: React's abstraction over the DOM means that it's not always obvious how to do DOM-related things, like working with the HTML Canvas API. When working 阅读全文
posted @ 2018-02-21 03:52 Zhentiw 阅读(147) 评论(0) 推荐(0)
摘要: When the screen size is small, we can use "no more table" solution. So instead of render table is row layout, we render it in column layout. Given the 阅读全文
posted @ 2018-02-20 22:05 Zhentiw 阅读(394) 评论(0) 推荐(0)
摘要: In this lesson we are going to use Google's Puppeteer to gather metrics about a page's load time. We'll use a high level date subtraction method as we 阅读全文
posted @ 2018-02-20 16:49 Zhentiw 阅读(462) 评论(0) 推荐(0)
摘要: The React documentation has been warning us for a long time now that context shouldn't be used and that the API is unstable. Well, with the release of 阅读全文
posted @ 2018-02-20 02:33 Zhentiw 阅读(326) 评论(0) 推荐(0)
摘要: Every Angular CLI generated project comes already with Karmapreinstalled as well a couple of executable Jasmine specs. The default test reporter is "p 阅读全文
posted @ 2018-02-16 19:46 Zhentiw 阅读(147) 评论(0) 推荐(0)
摘要: 1. First you have enable "Developer mode" on your mobile device. (Different device might be different) "Settings" -> Click "Build Number" 7 times. 2. 阅读全文
posted @ 2018-02-15 17:14 Zhentiw 阅读(174) 评论(0) 推荐(0)
摘要: Using the New Device Emulation Interface The Device Emulation interface changed a bit with the newer version of Chrome Dev Tools. Here are the instruc 阅读全文
posted @ 2018-02-15 16:54 Zhentiw 阅读(160) 评论(0) 推荐(0)
摘要: In a proper unit test we want to isolate external dependencies as much as possible to guarantee a reliable test outcome. Http calls represent such ext 阅读全文
posted @ 2018-02-14 21:20 Zhentiw 阅读(570) 评论(0) 推荐(0)
上一页 1 ··· 313 314 315 316 317 318 319 320 321 ··· 499 下一页