JSFiddle - React, Tailwind, and code Playground
HTML
<div shape="rect" coords="68,108,112,247" id="la">a</div>
<div shape="rect" coords="134,108,174,247" id="ma">b</div>
<div shape="rect" coords="195,108,240,247" id="al">c</div>
JavaScript
[...document.getElementsByTagName('div')].forEach(el=>{
console.log('ff')
el.onclick = function(){
document.getElementById(this.id).innerHTML += '!';
}
})