in codelab-initial-state/public/js/view.js [85:95]
setItems(items) {
this.itemCards = items.docs.map(item => {
return new ItemCard(item, this.callback);
});
if (this.itemCards.length > 0) {
setChildren(this.el, this.itemCards);
} else {
setChildren(this.el, el("div", "There's nothing here ... did you remember to start the emulators with --import?"));
}
}