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.
Using Yarn
yarn add react-hooky
or NPM
npm install react-hooky
<Audio /><Preload /><Script /><Stylesheet /><Video />useDeviceMotionuseDeviceOrientationuseGeoPositionuseIntersectionObserveruseMediauseNetworkStatususeWindowScrollPositionuseWindowSize
createMemouseAsyncuseAudiouseBatteryuseBooleanuseCounteruseCssuseFaviconuseGeolocationuseGetSetuseGetSetStateuseHoveruseIdleuseLifecyclesuseListuseLocalStorageuseLocationuseLoggeruseMapuseMediaDevicesuseMotionuseMountuseNetworkuseNumberuseObservableuseOrientationuseRafuseSetStateuseSizeuseSpeechuseSpringuseTimeoutuseTitleuseToggleuseTweenuseUnmountuseWindowSizeasuseWindowSizeUuseMediaasuseMediaU
useOnClickOutsideuseSubstateandSubstateProvider
Feel free to pull your request of hooks and keep agreement of conventional commits.
The -y (i) suffix in Russian is just like -s (-es) in English and usable for plural form of a word.
MIT
