JSFiddle - React, Tailwind, and code Playground

by Dave Salomon

HTML

<button>Foo</button>

JavaScript

$(document).ready(function () {
    function Test() {
        var that = this;
        that.testFunc = function () {
            alert('f');
        };
    }

    $('button').click(function () {
        testFunc();
    });
    Test();

});