README
Our apps re-usable hooks
⚓ hooks are good, making custom re-usable ones is better
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
};