JSFiddle - React, Tailwind, and code Playground

HTML

<div id="result">test content</div>

<!-- пример из сайта know-online.com -->

JavaScript

$.widget("custom.customWidget", {
    options: {
        name: "World"
    },
    _create: function() {
        this.element.html("Hello " + this.options.name);
    }
});

$("#result").customWidget();