react-typesafe-hooks
v1.0.9
Published
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.
Maintainers
Readme
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-hooksBuilds
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-buildmac
npm explore react-typesafe-hooks -- npm run mac-buildlinux
npm explore react-typesafe-hooks -- npm run linux-buildHooks
- [x] useArray
- [x] useAsync
- [x] useAudio
- [ ] useBattery
- [x] useClickOutside
- [x] useCookie
- [x] useCopyToClipboard
- [x] useDarkMode
- [x] useDebounce
- [x] useDebugInformation
- [x] useDeepCompareEffect
- [x] useEventListener
- [x] useFetch
- [x] useGeolocation
- [x] useHover
- [x] useLongPress
- [x] useMediaQuery
- [x] useMergeState
- [x] useOnlineStatus
- [x] useOnScreen
- [ ] usePermission
- [x] usePrevious
- [x] useRenderCount
- [ ] useScroll
- [x] useSearchFilter
- [x] useSize
- [ ] useStartTyping
- [x] useStateWithHistory
- [x] useStateWithValidation
- [x] useStorage
- [x] useTimeout
- [x] useToggle
- [x] useUpdateEffect
- [x] useVibrate
- [x] useVideo
- [x] useWindowSize
