essential-hooks-collection - v1.2.0

๐Ÿช Essential Hooks Collection

npm version License: MIT Build & Tests

A collection of essential React hooks.

โœ… TypeScript Support
โœ… Optimized for React 18+
โœ… JavaScript & TypeScript Compatibility
โœ… Typedoc-Generated Documentation


Using npm:

npm install essential-hooks-collection

Using yarn:

yarn add essential-hooks-collection

Import the hooks in your React project:

import { useLocalStorage, useWindowSize } from "essential-hooks-collection";

For a full list of hooks and their API documentation, visit:
๐Ÿ“– Typedoc Documentation


This library uses TypeDoc to generate API documentation.

To generate documentation locally:

npm run docs

To deploy the documentation to GitHub Pages, run:

npm run docs:deploy

Live Documentation:
๐Ÿ“– View Docs


This library includes Jest tests for all hooks.

To run tests:

npm test

To run tests in watch mode:

npm run test:watch

To check test coverage:

npm run test:coverage

  1. Fork the repository ๐Ÿ“Œ
  2. Create a new branch (git checkout -b feature/new-hook)
  3. Push to the branch (git push origin feature/new-hook)
  4. Open a pull request ๐Ÿš€