Package Exports
- @snappmarket/hooks
- @snappmarket/hooks/index
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@snappmarket/hooks) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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
};