JSFiddle - React, Tailwind, and code Playground

HTML

<div>
    <button onclick="FunctionName();">Click Me</button>
</div>
<script type="text/javascript" id="script1">
    function FunctionName() {
         /* block of code here */
        alert('function');
    }
</script>
<script type="text/javascript" id="script2">
     alert("working")
</script>