JSPM

@snappmarket/hooks

0.3.1-alpha.j.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 17
  • Score
    100M100P100Q41352F
  • License MIT

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

version downloads PRs Welcome MIT License

Watch on GitHub Star on GitHub

react hooks


get started

npm i @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 MyComponenet = props => {
  // use hook here
};

The MIT License (MIT)

Copyright (c) 2020 @snappmarket

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: