Socket
Book a DemoInstallSign in
Socket

essential-hooks-collection

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

essential-hooks-collection

A collection of essential React hooks

latest
Source
npmnpm
Version
1.2.0
Version published
Maintainers
0
Created
Source

🪝 Essential Hooks Collection

npm version License: MIT Build & Tests

A collection of essential React hooks.

🚀 Features

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

📦 Installation

Using npm:

npm install essential-hooks-collection

Using yarn:

yarn add essential-hooks-collection

🔧 Usage

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

📝 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

🧪 Running Tests

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

🤝 Contributing

💡 How to Contribute

  • Fork the repository 📌
  • Create a new branch (git checkout -b feature/new-hook)
  • Push to the branch (git push origin feature/new-hook)
  • Open a pull request 🚀

Keywords

react

FAQs

Package last updated on 10 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts