React useState: isActive and hasActivatedOnce states
Say you have these 2 states: const [ isActive ] = useState(false); const [ hasActivatedOnce ] = useState(false); isActive might track something like hover state of an element for example. And then hasActivatedOnce would track if that element has been hovered/activated once. So it would turn true once, and then never turn false.. I'm trying to …