Check out example codes for "react html mouseover". It will help you in understanding the concepts better.

Code Example 1

function changeBackground(e) {
    e.target.style.background = 'red';
  }

  return (
    <div className="App">
      <button onMouseOver={changeBackground}>Hover over me!</button>
    </div>
  );

Learn ReactJs, React Native from akashmittal.com