JSFiddle - React, Tailwind, and code Playground
HTML
<input name="mybutton" type="button" class="agh" id="id_button" value="Dim" onClick="alert('hello')">
JavaScript
document.getElementById("id_button").onclick = null;
<input name="mybutton" type="button" class="agh" id="id_button" value="Dim" onClick="alert('hello')">
document.getElementById("id_button").onclick = null;