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