@julienvanbeveren/hooks
TypeScript icon, indicating that this package has built-in type declarations

0.0.18 • Public • Published

NPM version NPM downloads

React Hooks

A library of custom hooks for React.js

Installation

$ npm install @julienvanbeveren/hooks --save

Usage

Quick start

import { useHookName } from '@julienvanbeveren/hooks'

Hooks

hook guide description
useDebounce useDebounce.md a hook built on useEffect, that allows you to debounce your function in milliseconds
useThrottle useThrottle.md a hook built on useEffect, that allows you to throttle your function in milliseconds
useClipboard useClipboard.md an easier way to interact with navigator.clipboard
useLocalStorage useLocalStorage.md a state manager that can sync state between browser tabs and components without boilerplate
usePersistentState usePersistentState.md a state manager that persists on reload
usePrevState usePrevState.md a state manager that gives you access to the previous state
useScreens useScreens.md a hook for getting info about the clients screensize

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Add your changes: git add .
  4. Commit your changes: git commit -am 'Add some feature'
  5. Push to the branch: git push origin my-new-feature
  6. Submit a pull request 😎

Authors

Julien Van Beveren

License

This repository's contents are subjected to be under the MIT License. © Julien Van Beveren

Readme

Keywords

none

Package Sidebar

Install

npm i @julienvanbeveren/hooks

Weekly Downloads

0

Version

0.0.18

License

MIT

Unpacked Size

26.3 kB

Total Files

37

Last publish

Collaborators

  • julienvanbeveren