JSFiddle - React, Tailwind, and code Playground

by feng taotao

HTML

<input type="button" value="click me" id="btn" />

JavaScript

var button = document.getElementById('btn');
button.addEventListener('click', function(){
    
    alert('request the data');
    this.disabled = true;
})