@snappmarket/hooks

> โš“ hooks are good, making custom re-usable ones is better

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@snappmarket/hooks
37170.5.63 years ago4 years agoMinified + gzip package size for @snappmarket/hooks in KB

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

<img src="./logo.png" alt="react hooks" />


get started

```bash yarn add @snappmarket/hooks
## Hooks Found Here

| Hook Name                                         |  Description                                                     |
| ------------------------------------------------- | ---------------------------------------------------------------- |
| [useDebounce](https://github.com/snappmarket/frontend-toolbox/tree/master/packages/hooks/packages/useDebounce)      | ๐Ÿ”‚ Change rapidly, do once                                       |
| [useDidUpdateEffect](https://github.com/snappmarket/frontend-toolbox/tree/master/packages/hooks/packages/useDidUpdateEffect) | ๐Ÿงต Do not worry about render phase effect calls                 |
| [useFocus](https://github.com/snappmarket/frontend-toolbox/tree/master/packages/hooks/packages/useFocus)                     | ๐Ÿ˜ต Focus on every thing you want                                 |
| [useForceUpdate](https://github.com/snappmarket/frontend-toolbox/tree/master/packages/hooks/packages/useForceUpdate)         | ๐Ÿ‘ฟ force update component                                        |
| [useGeoLocation](https://github.com/snappmarket/frontend-toolbox/tree/master/packages/hooks/packages/useGeoLocation)         | ๐Ÿ—บ easily deal with navigator location API                      |
| [useRouteChange](https://github.com/snappmarket/frontend-toolbox/tree/master/packages/hooks/packages/useRouteChange)         | ๐Ÿน detect when react router dom route changes                    |
| [useTimer](https://github.com/snappmarket/frontend-toolbox/tree/master/packages/hooks/packages/useTimer)                     | โฑ easily handle timing                                          |


## usage 
```javascript
import { HOOK_NAME } from '@snappmarket/hooks';


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