JSFiddle - React, Tailwind, and code Playground
HTML
<div id="container">
<input type="button" class="btn" value="a"/>
<input type="button" class="btn" value="b"/>
<input type="button" class="btn" value="c"/>
<input type="button" class="btn" value="d"/>
</div>
JavaScript
document.getElementById('container').onclick = function(event) {
if (event.target.tagName === 'INPUT' && event.target.type === 'button') {
console.log(event.target.value);
}
}