JSFiddle - React, Tailwind, and code Playground

by skram

HTML

<div id="picture"></div>

CSS

div {
    width: 200px; 
    height: 150px;
    border: 1px solid navy;
}

JavaScript

$(document).ready(function() {
    $('#picture').css('height', '100px');
    $('#picture').click(function () {
        $(this).css('background-image', "url('../img/logo.png')");
    });
});