1.0.9 • Published 4 years ago
react-typesafe-hooks v1.0.9
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
- 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