Skip to content

reussio/tiny-hooks

Repository files navigation

Tiny Hooks 🚀

Tiny Hooks is a collection of reusable, modern React hooks written in TypeScript.
Designed for clean, typed, and efficient React development.

npm downloads TypeScript License

🚀 Features

✅ Over 20 hooks for common tasks
✅ Fully written in TypeScript
Server-Safe hooks
✅ Easy to integrate in any React project
✅ Supports React≥16.8

⚙️ Installation

bun add tiny-hooks
# or
pnpm add tiny-hooks
# or
yarn add tiny-hooks
# or
npm install tiny-hooks

💡 Available Hooks

⚡ State Hooks

  • useBoolean
  • useCounter
  • useStep
  • useToggle
  • useUndoRedo

💿 Storage Hooks

  • useLocalStorage
  • useSessionStorage
  • useCookie
  • useClipboard

🔁️ Event & Interaction Hooks

  • useClickAnywhere
  • useClickOutside
  • useEventListener
  • useHover
  • useScrollProgress

🌐 Browser & Environment Hooks

  • useIsClient
  • useIsMounted
  • useBrowserCapabilities
  • useOnlineStatus
  • useConnectionType
  • usePing
  • useRedirect
  • useIdle
  • useBatteryStatus

⏱️ Utility Hooks

  • useDebounce
  • useThrottle
  • usePrevious
  • useStopwatch

🤝 Contributing

  1. Fork this repository
  2. Clone your fork locally: git clone git@github.com:reussio/tiny-hooks.git
  3. Make your improvements or fixes.
  4. Commit your changes and push the branch to your fork.
  5. Open a Pull Request against the main branch of this repository.

📜 Code of Conduct

Please follow our Code of Conduct.

🌍 Repository

📜 License

This project is licensed under the MIT License.
See the LICENSE file for more details.

About

A tiny collection of reusable React hooks written in TypeScript for modern web applications.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •