How to replace useState with useRef and be a winner

from blog Vladimir Klepov as a Coder, | ↗ original
React state is the bread and butter of a react app — it's what makes your app dynamic. React state lives in useState, useReducer or in this.state of a class component, and changing it updates your app. But then there's a vast ocean of state not managed by React. This includes ref.current, object properties, and, really, anything other than react...