So I\'m trying to understand what\'s wrong with writing this event listener in React? I notice others wrap it in a useEffect hook and add a removeEventlistener, but I don\'t