/** * Hook that returns the previous value of a variable * * @template T - The type of the value * @param value - The current value * @returns The previous value * * @example * ```tsx * const Counter = () => { * const [count, setCount] = useState(0); * const prevCount = usePrevious(count); * return