JSFiddle - React, Tailwind, and code Playground

JavaScript

function test()
    {
      window.$E = function() { alert('test'); };
    }
    
    test();
    $E();