use-prev (npm): This custom hook allows you to get previous value from the useState
Keywords: hook|react|useState|use-prev|usePrev|previous|state