JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/dot-luv/jquery-ui.css">
<div class="codeswitcher">
    <img src="http://mysite.com/images/codeswitcher.png" alt="codeswitcher">
</div>

JavaScript

$(document).ready(function(){

 $('.codeswitcher').click(function() {
        alert("You clicked it");
 });

});