JSFiddle - React, Tailwind, and code Playground
HTML
<img src="http://www.google.com/logos/2011/gregormendel11-hp.jpg"/>
<br/>
<img src="http://www.google.com/logos/2011/gregormendel11-hp.jpg" id="fluidimage"/>
JavaScript
$(document).ready(function() {
var imageresize = 0.8;
var $image = $("#fluidimage");
$image.css({
"width": Math.round($image.width() * imageresize),
"height": Math.round($image.height() * imageresize)
});
});