Implement and understand usePrevious hook
Introduction
You've probably seen the pattern where useRef is used to keep track of the previous value of a state. But how does it always stay one time behind the useState?
That's what we'll dive into today!
usePrevious hook
import { useRef, useEffec...
tigerabrodi.blog3 min read