Javascript – Find the id of the div using onMouseOver event object
I wrote the below code to capture the id for the div, when the user hovers over the div. <div className="part-3" id="graph-1" onMouseEnter={handleHover}> <h3 className="chartHeader">Avg. marks per subject </h3> {<MarksDisplayTable/>} </div> My handleHover function looks as below - const handleHover…