JSFiddle - React, Tailwind, and code Playground

by Kevin Faulhaber

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);   
        }
};