JSFiddle - React, Tailwind, and code Playground

by Kishore Sahasranaman

HTML

<img src="http://dummyimage.com/100"></img>

JavaScript

var image = 100;
$(function () {
    $('img').click(function (e) {
        $(this).attr('src', 'http://dummyimage.com/' + (image += 100));
    });
});