score:0

Accepted answer
const onCrossClick = (e) => {
   console.log(e.currentTarget);
};

<button
  className="delete-button"
  onClick={onCrossClick}>    
     <i className="fas fa-times-circle fa-2x"></i>
</button>

score:0

const onCrossClick = (e) => {
   console.log(e.target.closest("button"));
};

Related Query

More Query from same tag