JSFiddle - React, Tailwind, and code Playground
HTML
<div>
<p>Here is some content!</p><p>Here is some more text</p>
</div>
JavaScript
window.onmouseover = function(e){
if(e.target.tagName == 'P')
{
alert(e.target.innerHTML);
}
};