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
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Add your changes:
git add .
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
😎
Authors
Julien Van Beveren
License
This repository's contents are subjected to be under the MIT License. © Julien Van Beveren