0.5.0 • Published 7 years ago
react-hooky v0.5.0
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-hookyor NPM
npm install react-hookyExports
the-platform
<Audio /><Preload /><Script /><Stylesheet /><Video />useDeviceMotionuseDeviceOrientationuseGeoPositionuseIntersectionObserveruseMediauseNetworkStatususeWindowScrollPositionuseWindowSize
react-use
createMemouseAsyncuseAudiouseBatteryuseBooleanuseCounteruseCssuseFaviconuseGeolocationuseGetSetuseGetSetStateuseHoveruseIdleuseLifecyclesuseListuseLocalStorageuseLocationuseLoggeruseMapuseMediaDevicesuseMotionuseMountuseNetworkuseNumberuseObservableuseOrientationuseRafuseSetStateuseSizeuseSpeechuseSpringuseTimeoutuseTitleuseToggleuseTweenuseUnmountuseWindowSizeasuseWindowSizeUuseMediaasuseMediaU
other
useOnClickOutsideuseSubstateandSubstateProvider
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
