JSFiddle - React, Tailwind, and code Playground

JavaScript

test = function() {
    alert('test');
};


test2 = (function() {
      alert('test2');
})();