JSFiddle - React, Tailwind, and code Playground

HTML

<div id="time"></div>

<div id="parent">This is the parent with a parent area
<div id="child">This is child with child area
</div>
</div>

CSS

#time{
    height:40px;
    background:green
}
#parent{
    height:50px;
    background:red
}
#child{
    height:50px;
    background:blue;
}

JavaScript

document.getElementById("parent").addEventListener('mouseover', function() {
    document.getElementById("time").innerHTML = new Date;
}, false);