Skip to content

irhamputra/react-use-pkg

Repository files navigation


📦✨
react-use-pkg

The unusual custom react hooks library

npm package npm package license bundle size npm size

Install

npm install --save react-use-pkg

Lists

  • useFormatMoney — convert number to Intl format number.
  • useZipCode — return JSON data of international Zip Code number
  • useFetchWithCORS — enable CORS in client if you don't have access to server
  • useToggle — toggle state easily
  • useWillUnmount — Hook for ComponentWillUnmount lifecycle
  • useGetUnique — Hook for getting unique array
  • useAbortController — Hook for cancel promise
  • useLoadScript — Hook for loading external script and embed it
  • useTwitterAvatar — Get your Twitter Avatar Hook

License

MIT © irhamputra