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")
                .attr("height", "128")
                .attr("width", "128")
                .addClass("thumb")
            )
            .append(
                $("<span />")
                .html("<b>" + temp.title + "</b><br />")
            )
        );
});

$(".thumb").each(function(){
   console.log($(this)); 
   console.log($(this).width()); // Is 0? Should be 128 pixels in my script
});