JSFiddle - React, Tailwind, and code Playground

HTML

<div id="id-div">
  <div id="button">
    <span>Sometext</span>
  </div>
</div>

CSS

button {
  border: 0;
  background: 0;
}

span {
  width: 100px;
  height: 100px;
  background-color: red;
}

JavaScript

document.querySelector('#button').addEventListener('click', function(e) {
	console.log(e.target, e.currentTarget);
});