Skip to content

irhamputra/react-use-pkg

Repository files navigation


📦✨
react-use-pkg

The unusual custom react hooks library

npm package npm package license

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

Work in progress

  • useGenerateQRCode — return generated QR code as an image
  • useDayFormat — Dates converted

License

MIT © irhamputra