Duration
1 min
Access
Free
Transcript
Available

Our hook to track the previous values looks pretty useful, so let's extract that into it's own custom React Hook called usePrevious.