import TestCase from '../../TestCase'; const React = window.React; const ReactDOM = window.ReactDOM; const MouseEnter = () => { const containerRef = React.useRef(); React.useEffect(function () { const hostEl = containerRef.current; ReactDOM.render(, hostEl, () => { ReactDOM.render(, hostEl.childNodes[1]); }); }, []); return (
  • Mouse enter the boxes below, from different borders
  • Mouse enter call count should equal to 1;
    Issue{' '} #16763 {' '} should not happen.
    ); }; const MouseEnterDetect = () => { const [log, setLog] = React.useState({}); const firstEl = React.useRef(); const siblingEl = React.useRef(); const onMouseEnter = e => { const timeStamp = e.timeStamp; setLog(log => { const callCount = 1 + (log.timeStamp === timeStamp ? log.callCount : 0); return { timeStamp, callCount, }; }); }; return (
    Mouse enter call count: {log.callCount || ''}
    ); }; export default MouseEnter;