react-use-previous

React hook for remembering a previous value.

Browse on unpkg