Skip to content

react hooks that are type safe built completely in typescript. These are regular usage hooks and more will be added in later versions of the project.

License

Notifications You must be signed in to change notification settings

saisumith770/react-typesafe-hooks

Repository files navigation

React Typesafe Hooks

This library is focused at typesafe utility hooks. We may not have a vast majority of hooks as compared to libraries like react-use but all of our hooks are built with typesafety in mind and are aimed majorly for typescript developers.
The package can be installed via npm by executing:

npm i react-typesafe-hooks

Builds

I see that the .map files are not useful in production builds so if you wanted to compress the folder, we would suggest adding the following commands to your production script in npm.
windows

npm explore react-typesafe-hooks -- npm run windows-build

mac

npm explore react-typesafe-hooks -- npm run mac-build

linux

npm explore react-typesafe-hooks -- npm run linux-build

Hooks

  • useArray
  • useAsync
  • useAudio
  • useBattery
  • useClickOutside
  • useCookie
  • useCopyToClipboard
  • useDarkMode
  • useDebounce
  • useDebugInformation
  • useDeepCompareEffect
  • useEventListener
  • useFetch
  • useGeolocation
  • useHover
  • useLongPress
  • useMediaQuery
  • useMergeState
  • useOnlineStatus
  • useOnScreen
  • usePermission
  • usePrevious
  • useRenderCount
  • useScroll
  • useSearchFilter
  • useSize
  • useStartTyping
  • useStateWithHistory
  • useStateWithValidation
  • useStorage
  • useTimeout
  • useToggle
  • useUpdateEffect
  • useVibrate
  • useVideo
  • useWindowSize

About

react hooks that are type safe built completely in typescript. These are regular usage hooks and more will be added in later versions of the project.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published