@dipakparmar/hooks
v0.0.1-alpha.2
Published
A collection of reusable React/Node.js hooks for common use cases.
Downloads
30
Readme
@dipakparmar/hooks
A collection of reusable React/Node.js hooks for common use cases.
Installation
bun add @dipakparmar/hooksAvailable Hooks
A hook that returns a debounced version of a value. Useful for delaying updates until a certain period of inactivity has passed.
import { useDebounce } from '@dipakparmar/hooks';
const [searchTerm, setSearchTerm] = useState('');
const debouncedSearchTerm = useDebounce(searchTerm, 500);Development
To set up the development environment:
git clone <repository-url>
cd shared-hooks
bun installScripts
bun run build- Build the package
Contributing
Contributions are welcome! If you have a hook that you think would be useful to others, feel free to submit a PR.
License
MIT
