JSFiddle - React, Tailwind, and code Playground
HTML
<ul id="list">
</ul>
JavaScript
var items = [{
title: "First",
description: "A first"
},{
title: "Second",
description: "A second"
}];
console.log(items);
$.each(items, function (key, temp) {
$("#list").append(
$("<li />")
.append($("<img />")
.attr("src", "http://www.logoquizantwoorden.nl/wp-content/uploads/2012/06/Logo-Quiz-uitleg.png")
.addClass("thumb"))
.append($("<span />")
.html("<b>" + temp.title + "</b><br />")));
});
$(".thumb").each(function(indx, t){
console.log($(t));
console.log($(t).width()); // Is 0? Should be 128 pixels in my script
});