Example 1:
Input: value = 'cloudvyn', delay = 500
Output: 'cloudvyn' (after 500ms)
Explanation: The returned debounced value will update to 'cloudvyn' 500ms after the user stops typing.
Example 2:
Input: value changes at 0ms, 100ms, 200ms with delay = 300ms
Output: Value updates at 500ms
Explanation: Each new value resets the 300ms timer. The debounced hook emits the final value 300ms after 200ms.
value = 'react', delay = 300'react'