Key Insight: usePrevious = read first, write second. This is a common interview question that tests understanding of ref timing: ref.current = value updates AFTER the return.
Practice this in a timed sprint →
5 free questions, no signup required