So I've spent so much time on this jschallenger.com/cursor-enters-and-leaves-element problem. So the problem is that this function is provided. We have to use is to
const toggleColor = (isEntering) => { element.style.background = isEntering ? 'orange' : 'black'; };