fix: removing JSdoc for usedebounce and comments
This commit is contained in:
1 parent
c670653ab3
commit
98943ad461
3 files changed
+2
-14
No files matched your search
@@ -1,15 +1,5 @@
|
||||
import { useState, useEffect } from "react";
|
||||
|
||||
/**
|
||||
* Custom hook for debouncing values
|
||||
* @template T - The type of the value being debounced
|
||||
* @param value - The value to debounce
|
||||
* @param delay - The debounce delay in milliseconds
|
||||
* @returns The debounced value
|
||||
*
|
||||
* @example
|
||||
* const debouncedSearch = useDebounce(search, 300); // Debounces the search input with a 300ms delay
|
||||
*/
|
||||
const useDebounce = <T>(value: T, delay: number): T => {
|
||||
const [debouncedValue, setDebouncedValue] = useState<T>(value);
|
||||
|
||||
|
||||
Reference in new issue
Block a user