usehooks-ts

React hook library, ready to use, written in Typescript.

MIT License

Downloads
3.9M
Stars
5.7K
Committers
67

ðŸ’Ŧ Introduction

useHooks(ðŸ”Ĩ).ts is a React hooks library, written in Typescript and easy to use. It provides a set of hooks that enables you to build your React applications faster. The hooks are built upon the principles of DRY (Don't Repeat Yourself). There are hooks for most common use cases you might need.

The library is designed to be as minimal as possible. It is fully tree-shakable (using the ESM version), meaning that you only import the hooks you need, and the rest will be removed from your bundle making the cost of using this library negligible. Most hooks are extensively tested and are being used in production environments.

Usage example

import { useLocalStorage } from 'usehooks-ts'

function Component() {
  const [value, setValue] = useLocalStorage('my-localStorage-key', 0)

  // ...
}

🊝 Available Hooks

💚 Backers

Big thanks go to all our backers! [Become a backer]

âœĻ Contributors

Big thanks go to all our contributors! [Become a contributor]

This project follows the all-contributors specification (emoji key). Contributions of any kind welcome!

💞 Donate

If you find this piece of software helpful, please consider a donation. Any amount is greatly appreciated.

BTC: bc1qwys40tnd0lxf9lr9l0t6xc63dpxyucj4x4nay0

ETH: 0x36a85155a8300754C56395D5af24553FB18915D6

📝 License

This project is MIT licensed.

Package Rankings
Top 0.88% on Npmjs.org
Badges
Extracted from project README's
Contributor Covenant License All Contributors GitHub Sponsors Paypal Stripe Buy me a coffee
Related Projects