JSFiddle - React, Tailwind, and code Playground

by bhupendra negi

HTML

<input id="elem" type="button" value="Click me">

JavaScript

elem.onclick = function() {
    alert('Thank you');
  };