JSFiddle - React, Tailwind, and code Playground

HTML

<div id="div"></div>

JavaScript

jQuery.fn.test = function() { 
    alert("done"); 
    return this.each()};
$('#div').html('blub').test();