Course lesson

Track Values Over the Course of Renders with React useRef in a Custom usePrevious Hook

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

Duration
1 min
Access
Pro
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.