JSFiddle - React, Tailwind, and code Playground
HTML
<div id="picture">Lorem ispum</div>
CSS
div {
width: 200px;
height: 200px;
background-image: url('http://placehold.it/300x300/ff0000');
}
JavaScript
$(document).ready(function() {
$('#picture').css('height', '666px');
$('#picture').click(function () {
$(this).css('background-image', "url('http://placehold.it/200x200/ffaa00')");
});
});