JSFiddle - React, Tailwind, and code Playground

HTML

<div id="test">
    <div onclick="alert('hello');">Click Me</div>
</div>

JavaScript

;(function () {
    function cancel () { return false; };
    document.getElementById("test").disabled = true;
    var nodes = document.getElementById("test").getElementsByTagName('*');
    console.log(nodes);
    for (var i = 0; i < nodes.length; i++) {
        nodes[i].setAttribute('disabled', true);
        nodes[i].onclick = cancel;
    }
}());