JSFiddle - React, Tailwind, and code Playground

HTML

<a href="http://testpage.com/">
    <script type="text/javascript">
        var phrases = [ 1,2,3,4 ];
    
        var scripts = document.getElementsByTagName('script');
        var this_script = scripts[scripts.length -1];
        this_script.parentNode.replaceChild(document.createTextNode(phrases[Math.floor(Math.random()*phrases.length)]), this_script);
    </script>
    </a>