Hooks
Hooks

Overview

npm versionnpm downloadsBundlephobia

Installation

Required dependencies

This package relies on React hooks (new tab) and thus requires version 16.3 or higher.

# npm
npm i --save @weser/hooks

# yarn
yarn add @weser/hooks

# pnpm
pnpm add @weser/hooks

Motivation

Hooks (new tab) are the standard way to manage state and side effects in React.
There are many great libraries out there that provide a lot of useful hooks for common use cases, but I found myself creating a lot of custom hooks for my own use cases anyways.
That's why I decided to create this package.

Benefits

As with every hooks collection, you get a bunch of useful hooks for common use cases that can reduce the amount of boilerplate code you need to write, save you some time and improve the readability of your code.

On this page