JSFiddle - React, Tailwind, and code Playground

by Ben Watts

HTML

<div class="tester">Click meh</div>

JavaScript

$.fn.alertSometing = function (param) {
    alert(param);
};

$(function () {
    $('.tester').on('click', function () {
        $(this).alertSometing("Button clicked");
    })
});