Reactjs – Difference Between useMemo and useEffect With Ref Dependencies
In React, both useEffect and useMemo have a dependencies argument. I naively thought they worked identically: whenever the values in that dependencies argument changed, I thought the useEffect or useMemo callback would be run, and that the only difference was…