react-hooky
v0.5.0
Published
React.js hooks collection all-in-one
Downloads
6
Maintainers
Readme
react-hooky
Why?
Since the appearance of hooks in React, many packages have been published for various purposes, and in a reason to not pull many new small dependencies, most of them are combined in this package through re-export.
This package proxies dependencies and does not need to be compiled. It's built upon ES6 Modules for webpack
and rollup
and tree-shaking support.
A bundle size is optimized by bundler when used with ESM modules, so keep calm and feel free to use the package.
Install
Using Yarn
yarn add react-hooky
or NPM
npm install react-hooky
Exports
the-platform
<Audio />
<Preload />
<Script />
<Stylesheet />
<Video />
useDeviceMotion
useDeviceOrientation
useGeoPosition
useIntersectionObserver
useMedia
useNetworkStatus
useWindowScrollPosition
useWindowSize
react-use
createMemo
useAsync
useAudio
useBattery
useBoolean
useCounter
useCss
useFavicon
useGeolocation
useGetSet
useGetSetState
useHover
useIdle
useLifecycles
useList
useLocalStorage
useLocation
useLogger
useMap
useMediaDevices
useMotion
useMount
useNetwork
useNumber
useObservable
useOrientation
useRaf
useSetState
useSize
useSpeech
useSpring
useTimeout
useTitle
useToggle
useTween
useUnmount
useWindowSize
asuseWindowSizeU
useMedia
asuseMediaU
other
useOnClickOutside
useSubstate
andSubstateProvider
Contribution
Feel free to pull your request of hooks and keep agreement of conventional commits.
Whan does hooky
means?
The -y
(i) suffix in Russian is just like -s (-es)
in English and usable for plural form of a word.
License
MIT