React: Debouncing input with useEffect