サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
ブラックフライデー
www.simonsmith.io
Update 12/04/17 Airbnb's Enzyme library offers the best solution for shallow rendering Update 04/01/16 Added better examples of skin-deep usage When unit testing React components the common approach has been to render them into a DOM (with something like jsdom) and run some assertions against them with the help of the React TestUtils. This has changed in 0.13 where an early implementation of shall
I recently stumbled across an excellent talk by Nicolas Gallagher at dotCSS 2014 titled "Thinking beyond Scalable CSS" where he shed some light on how Twitter organise their UI components. I found two slides interesting in particular: I thought it might be interesting to apply a similar approach to organising React components with webpack. Directory structure I'll use a fictional React application
The world of JavaScript modules and package managers can be a fragmented place. With a mixture of AMD, Bower, npm and CommonJS it can sometimes lead to interoperability headaches. In this post we'll look at how CommonJS and AMD can live together in the same code base with some examples. If you need a refresher on the different module formats then Addy Osmani has you covered with this excellent art
Originally it took me a while to get on board with using Bower as part of my main development workflow. My biggest gripe was the way it handled repositories that were missing a bower.json file to configure ignored files etc. In that scenario the whole repository is installed into the bower_components folder and although there are two sides to it, checking that fluff into my Git repository doesn't
このページを最初にブックマークしてみませんか?
『www.simonsmith.io』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く