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;