JSFiddle - React, Tailwind, and code Playground
HTML
<script id="code1" type="text/myjs">
function hello(){
alert('hi code 1');
}
</script>
<script id="code2" type="text/myjs">
function hello1(){
alert('hi code2');
}
</script>
<button onclick="hello();"/>