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 |
|
useDidUpdateEffect |
|
useFocus |
|
useForceUpdate |
|
useGeoLocation |
|
useRouteChange |
|
useTimer |
|
usage
import { HOOK_NAME } from '@snappmarket/hooks';
const SampleComponent = props => {
// use hook here
};