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
git checkout -b feature/new-hook
)git push origin feature/new-hook
)