#526 usePrevious

easy
react

Implement a custom React hook called usePrevious that stores the previous value of a given state or prop.