use-prevThis custom hook allows you to get previous value from the useStatehookreactuseStateuse-prevusePrevpreviousstate0.0.2 • Published 5 years ago