- accepted / - tried
Create a hook usePrevious() to return the previous value, with initial value of `undefined.
usePrevious()
Think aloud!
Try it out
Console