Skip to content

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

License

Notifications You must be signed in to change notification settings

reussio/tiny-hooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

85 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

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

  •  
  •