JSFiddle - React, Tailwind, and code Playground

by thezillion

HTML

<html>
<head>
    <script>
        function removeMe(){
            var a = document.getElementById('btn');    
            document.body.removeChild(a);    
        }
   
document.onload = function(){
document.getElementById('btn').attachEvent('onclick',removeMe());
        }
    </script>
</head>
<body>
    <button type='button' id='btn'>
        Remove Me
    </button>
</body>
</html>