JSFiddle - React, Tailwind, and code Playground

HTML

<html>
    <body>
        <div id="imgFullView"></div>
    </body>
</html>

CSS

#imgFullView {
    border:2px solid #000; 
    width:20px;
    height:20px
}

JavaScript

function ShowImage(imgSrc){
 $('<img id="imgFull" />').bind('load',
    function(){
        if ( !this.complete || this.naturalWidth == 0 ) {
            $( this ).trigger('load');      
        } else {
            $( this ).appendTo('#imgFullView')
$('#imgFullView').width(this.naturalWidth).height(this.naturalHeight);
        }    
    }).attr("src",imgSrc);   
}

$(document).ready(function(){ ShowImage('http://www.google.com/images/logos/ps_logo2.png') });