Reactjs – Event handler not setting state
Sorry about another one of these but I'm at a loss. I am adding an event listener inside of useEffect(). The event fires (console.log() prints as expected) but the state isn't getting updated. Could someone please explain to me what's…