JSFiddle - React, Tailwind, and code Playground
HTML
<div class="example"></div>
JavaScript
$.fn.myPlugin = function () {
// `this` refers to the jQuery instance
this.css({'background-color': 'red'}).text('hey there');
console.log(this);
};
$("div").myPlugin();