JSFiddle - React, Tailwind, and code Playground

HTML

<input id="app" type="hidden" value="asdas"/>
<input id="token" type="hidden" value="asdasd"/>


 <script type="application/javascript">
        function main() {
            var token = document.getElementById('token').value;
            x = true;
            while (x) {
                localStorage.setItem('id_token', token);
                x = !localStorage.getItem('id_token');
            }
            
        }
        
        main();
    </script>