Have ideas to improve npm?Join in the discussion! »

@snappmarket/hooks

0.5.6 • Public • Published

Our apps re-usable hooks

hooks are good, making custom re-usable ones is better

version downloads PRs Welcome MIT License

Watch on GitHub Star on GitHub

react hooks


get started

yarn add @snappmarket/hooks

Hooks Found Here

Hook Name Description
useDebounce 🔂 Change rapidly, do once
useDidUpdateEffect 🧵 Do not worry about render phase effect calls
useFocus 😵 Focus on every thing you want
useForceUpdate 👿 force update component
useGeoLocation 🗺 easily deal with navigator location API
useRouteChange 🏹 detect when react router dom route changes
useTimer easily handle timing

usage

import { HOOK_NAME } from '@snappmarket/hooks';


const SampleComponent = props => {
  // use hook here
};

Install

npm i @snappmarket/hooks

DownloadsWeekly Downloads

61

Version

0.5.6

License

MIT

Unpacked Size

138 kB

Total Files

67

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar