JSFiddle - React, Tailwind, and code Playground

JavaScript

var $img = $( '<img src="http://static.jquery.com/files/rocker/images/logo_jquery_215x53.gif">' );

setTimeout( function(){
    $( document.body ).html( 'jQuery says: ' + $img.width() + '<br />HTML says: ' + $img[0].width );
}, 1000 );