JSFiddle - React, Tailwind, and code Playground
by mohammadAdil
HTML
<img id='myImage' src='http://placehold.it/200'/>
<button id="expand"> expand </button>
CSS
#expand{
position:absolute;
top:70px;
left:70px;
}
img{
position:absolute;
top:0;
left:0;
}
JavaScript
$('#expand').on('click',function(){
$('img#myImage').width($(window).width());
$('img#myImage').height($(window).height());
});