JSFiddle - React, Tailwind, and code Playground

JavaScript

(function ($) {
    // functions defined like that works
    var myfunction0 = function () {
        console.log("hello world");
    }
    
    // functions defined like that do not work
    function myfunction1() {
        console.log("hello world");
    }
})(jQuery);

myfunction0();
myfunction1();