0.0.18 • Published 2 years ago

@julienvanbeveren/hooks v0.0.18

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

NPM version NPM downloads

A library of custom hooks for React.js

Installation

$ npm install @julienvanbeveren/hooks --save

Usage

Quick start

import { useHookName } from '@julienvanbeveren/hooks'

Hooks

hookguidedescription
useDebounceuseDebounce.mda hook built on useEffect, that allows you to debounce your function in milliseconds
useThrottleuseThrottle.mda hook built on useEffect, that allows you to throttle your function in milliseconds
useClipboarduseClipboard.mdan easier way to interact with navigator.clipboard
useLocalStorageuseLocalStorage.mda state manager that can sync state between browser tabs and components without boilerplate
usePersistentStateusePersistentState.mda state manager that persists on reload
usePrevStateusePrevState.mda state manager that gives you access to the previous state
useScreensuseScreens.mda 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 :sunglasses:

Authors

Julien Van Beveren

License

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

0.0.18

2 years ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago