use-previous-values (npm): Custom hook for maintaining and versioning the previous values during rerenders.
Keywords: react|custom hook|previous states|past props|state history|data snapshots|keep state|undo|redo