JSFiddle - React, Tailwind, and code Playground
HTML
<div id="foo"> foo</div>
JavaScript
$.fn.plugin = function(obj) {
console.log(obj);
return this;
}
$('#foo').plugin($(this));
<div id="foo"> foo</div>
$.fn.plugin = function(obj) {
console.log(obj);
return this;
}
$('#foo').plugin($(this));