useRef and useEffect Seem like code smells
Look I am not on the React team, nor am I smart enough to be. I also don't know what kind of heuristics they went with in order to create the library but something feels hacky to me while reading about useRef() and useEffect().
Why should a well designed library