JSFiddle - React, Tailwind, and code Playground

by Adam Poczatek

JavaScript

(function($) {
    
    $.fn.test = {
            showMsg: function(options) { 
                return this.each(function() {
                    alert($(this));
                });
            } 
        }
    
})(jQuery);

$(function() {
   
    $('body').test.showMsg('red', 'blue', 'green');
    
});