@snappmarket/hooks

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

Usage no npm install needed!

<script type="module">
  import snappmarketHooks from 'https://cdn.skypack.dev/@snappmarket/hooks';
</script>

README

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
};