Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

hookify-react

uttamakwana16MIT0.0.5TypeScript support: included

A collection of optimized and reusable React hooks for state management, dom interaction, responsive design, storage, location, asynchronous management and performance improvements.

react, react hooks, custom react hooks, asynchronous management, useDebounce, useInterval, useTimeout, useAdvancedEffect, useUpdatedEffect, dom, useCopyToClipboard, useEventListener, useHover, useClickOutside, useOnlineStatus, useOnScreen, usePress, useScrollPosition, useSize, useWindowSize, location, useGeoLocation, state management, useArray, useCounter, useFormState, useHistory, usePrevious, useToggle, storage, useStorage, useLocalStorage, useSessionStorage, hookify-react, hooks for react

readme

📦 hookify-react

🚀 A collection of high-performance, reusable, and production-ready React hooks to simplify state management, dom, location, async management and browser storage.

GitHub package.json version npm GitHub stars License GitHub issues

🌟 Table of Contents

🚀 Features

  • ✅ Custom State Management Hooks
  • ✅ Async Management Hooks
  • ✅ Form Handling & Validation
  • ✅ Local & Session Storage Management
  • ✅ Undo/Redo State with History
  • ✅ Optimized & Performant

📌 Installation

npm install hookify-react

or

yard add hookify-react

⚡ Quick Start

  import { useEventListener } from "hookify-react";

  export default function UseEventListener() {
    const buttonRef = useRef<HTMLButtonElement>(null);

    useEventListener("click", () => alert("Button clicked!"), buttonRef);

    return <button ref={buttonRef}>Click Me</button>;
  }

🔍 Available Hooks

Async Management

  • useDebounce
  • useInterval
  • useTimeout
  • useAdvancedEffect
  • useUpdatedEffect

DOM Interactions

  • useCopyToClipboard
  • useEventListener
  • useHover
  • useClickOutside
  • useOnlineStatus
  • useOnScreen
  • usePress
  • useScrollPosition

State Management

  • useArray
  • useCounter
  • useFormState
  • useHistory
  • usePrevious
  • useToggle

Storage Mangement

  • useStorage
  • useLocalStorage
  • useSessionStorage

Location

  • useGeoLocation

Responsive Design

  • useSize
  • useWindowSize
  • useScrollPosition

🤝 Contributing

We welcome contributions! If you have suggestions for improvements or new hooks, please open an issue or submit a pull request.

  1. Fork the repository.
  2. Create your feature branch (git checkout -b feature/AmazingFeature).
  3. Commit your changes (git commit -m 'Add some AmazingFeature').
  4. Push to the branch (git push origin feature/AmazingFeature).
  5. Open a pull request.

📜 LICENSE

This project is licensed under the MIT License - see the LICENSE file for details.

📬 Contact

For any inquiries or support, please reach out to uttamakwana4503@gmail.com.

Documentation

Visit hookify-react for full documentation.

changelog

hookify-react

0.0.3

Patch Changes

  • c4465da: fallback to version 0.0.1 checking

0.0.2

Patch Changes

  • c4465da: fallback to version 0.0.1

0.0.3

Patch Changes

  • bb5482a: updated version to 0.0.2 from 0.0.1 due to error in publish workflow

0.0.2

Patch Changes

  • 4cfb503: fallback to the previous version to 0.0.1