snipshare
A reusable React hook for debouncing values, with TypeScript types and usage example.
import { useState, useEffect } from "react"; /** * Debounce a value by a given delay. *