{"name":"react-use","version":"15.2.1","description":"Collection of React Hooks","main":"lib/index.js","module":"esm/index.js","sideEffects":false,"types":"lib/index.d.ts","typings":"lib/index.d.ts","scripts":{"start":"yarn storybook","test":"jest --maxWorkers 2","test:watch":"jest --watch","test:coverage":"jest --coverage","lint":"eslint {src,tests}/**/*.{ts,tsx}","lint:fix":"yarn lint --fix","lint:types":"tsc --noEmit","build:cjs":"tsc","build:es":"tsc -m esNext --outDir esm","build":"yarn build:cjs && yarn build:es","clean":"rimraf lib storybook-static esm","storybook":"start-storybook -p 6008","storybook:build":"build-storybook","storybook:upload":"gh-pages -d storybook-static --git \"$(which git)\"","storybook:clean":"rimraf storybook-static","release":"semantic-release"},"husky":{"hooks":{"pre-commit":"yarn lint:types && lint-staged","pre-push":"yarn lint && yarn clean && yarn build && yarn test"}},"author":{"name":"@streamich"},"license":"Unlicense","repository":{"type":"git","url":"git+https://github.com/streamich/react-use.git"},"bugs":{"url":"https://github.com/streamich/react-use/issues"},"homepage":"https://github.com/streamich/react-use#readme","dependencies":{"@types/js-cookie":"2.2.6","@xobotyi/scrollbar-width":"1.9.5","copy-to-clipboard":"^3.2.0","fast-deep-equal":"^3.1.3","fast-shallow-equal":"^1.0.0","js-cookie":"^2.2.1","nano-css":"^5.2.1","react-universal-interface":"^0.6.0","resize-observer-polyfill":"^1.5.1","screenfull":"^5.0.0","set-harmonic-interval":"^1.0.1","throttle-debounce":"^2.1.0","ts-easing":"^0.2.0","tslib":"^2.0.0"},"peerDependencies":{"react":"^16.8.0","react-dom":"^16.8.0"},"devDependencies":{"@babel/core":"7.10.2","@babel/plugin-syntax-dynamic-import":"7.8.3","@babel/preset-env":"7.10.2","@babel/preset-react":"7.10.1","@babel/preset-typescript":"7.10.1","@semantic-release/changelog":"5.0.1","@semantic-release/git":"9.0.0","@semantic-release/npm":"7.0.5","@shopify/jest-dom-mocks":"2.9.0","@storybook/addon-actions":"5.3.19","@storybook/addon-knobs":"5.3.19","@storybook/addon-notes":"5.3.19","@storybook/addon-options":"5.3.19","@storybook/react":"5.3.19","@testing-library/react":"10.2.1","@testing-library/react-hooks":"3.3.0","@types/jest":"25.2.3","@types/react":"16.9.11","@typescript-eslint/eslint-plugin":"2.34.0","@typescript-eslint/parser":"2.34.0","babel-core":"6.26.3","babel-eslint":"10.1.0","babel-loader":"8.1.0","babel-plugin-dynamic-import-node":"2.3.3","eslint":"7.2.0","eslint-config-react-app":"5.2.1","eslint-plugin-flowtype":"5.1.3","eslint-plugin-import":"2.21.1","eslint-plugin-jsx-a11y":"6.2.3","eslint-plugin-react":"7.20.0","eslint-plugin-react-hooks":"3.0.0","fork-ts-checker-webpack-plugin":"4.1.6","gh-pages":"2.2.0","husky":"4.2.5","jest":"25.5.4","jest-localstorage-mock":"2.4.2","keyboardjs":"2.6.3","lint-staged":"10.2.9","markdown-loader":"5.1.0","prettier":"2.0.5","raf-stub":"3.0.0","react":"16.13.1","react-dom":"16.13.1","react-frame-component":"4.1.2","react-spring":"8.0.27","react-test-renderer":"16.13.1","rebound":"0.1.0","redux-logger":"3.0.6","redux-thunk":"2.3.0","rimraf":"3.0.2","rxjs":"6.5.5","semantic-release":"17.0.8","ts-jest":"26.1.0","ts-loader":"6.2.2","ts-node":"8.10.2","typescript":"3.8.3"},"config":{"commitizen":{"path":"git-cz"}},"release":{"branches":["master",{"name":"next","prerelease":"rc"}],"verifyConditions":["@semantic-release/changelog","@semantic-release/npm","@semantic-release/git"],"prepare":["@semantic-release/changelog","@semantic-release/npm","@semantic-release/git"]},"lint-staged":{"src/**/*.{ts,tsx}":["eslint --fix","git add"]},"volta":{"node":"10.21.0","yarn":"1.22.4"},"collective":{"type":"opencollective","url":"https://opencollective.com/react-use"},"jest":{"preset":"ts-jest","clearMocks":true,"coverageDirectory":"coverage","testMatch":["<rootDir>/tests/**/*.test.(ts|tsx)"],"setupFiles":["<rootDir>/tests/setupTests.ts"]},"gitHead":"0fabbcd641e5fc6d16091e7c4c803efe80d7ff56","_id":"react-use@15.2.1","_nodeVersion":"12.16.3","_npmVersion":"6.13.4","dist":{"integrity":"sha512-sLrX+yOKT+3gjyxAnpvJ4Ds5MTJqDuz6psS0+bdGEIK8qT5WTcoDI8AQRnre66SnOF0+EltD4S1zm0P6wldI2g==","shasum":"37c9d7bf6eeb4c9b5c646bdb7fe6cb64fc0ee644","tarball":"http://registry-npm.ywwl.com/react-use/download/react-use-15.2.1.tgz","fileCount":500,"unpackedSize":486686,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe3gLpCRA9TVsSAnZWagAAgMsP/28o+1r04nbhv43kU+aO\nNgezEghfwTrH6PDZiRhPK0bstD1Q8nEZeQwSqfL1u3n3JKsyTdkvGZTZZLSx\nSdZBBcVExXIuJqUMB399VInBjZJ+KHzgWZCQaUx2zOnBSsxtDY3cNKZSuXmZ\nM9k0DotaXVc7OSmt2yRAZjzsSKH5aT1eu985s0otjaO9BhAXzZ/unqSwDFxG\n7B/QOTqdt1lzz8BEki723SnYNbokNtVpoCf0TAd1hFFhPg86Lleg4hZ8fyaD\nsqMuM1QtLG1LihUB3Ba+BQFJkUXnORwve4ZoowpSRhcmgjMWWHhJwHOx4fmk\n5C09AMqWMrJp9nuKKkDsfqLIXEXSHg3TDH09lNaRy0JTs06XlNV586R+mH6B\nqGL9GKDMBWH9PxxTFCnNnitceFJ76ON1CIBhwpLJwhgoLCWbIurvpkMsOMmw\nJSvMd4OLjEy+JkmaB34P8iW3/JL0augaWLWprGz15r+CdnCeZ4ERv8ZjL1pK\nLcCm7yUMONBQ5tLW8kXYal1On6IpDP/bn8gqNdLIknY0igr83yvvhfItQaey\nQv52QFLnDAC4pPMHhhDA15aPHwu+Ku27jY9VAT2XmGsDe3DUH/2CFOvP6vRl\nKQg462cMf5kyLNOBA48VI3xYGSFYbChDp3Mf7QpPwypF3W4xb76ETwj+UhyL\nBtYC\r\n=nPr0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDAhrYu0hWs6BOeWihC3I2cUDfEvCBHousnqb4FTfxaoQIgeQIr37nCqly53ebUNctvXnTBUJhtlgCeNDe5O6kcGgA="}],"size":82523,"noattachment":false,"key":"/react-use/-/react-use-15.2.1.tgz"},"maintainers":[{"name":"streamich","email":"vadimsdaleckis@gmail.com"}],"_npmUser":{"name":"streamich","email":"vadimsdaleckis@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-use_15.2.1_1591608040663_0.4855488819875615"},"_hasShrinkwrap":false,"readme":"<div align=\"center\">\n  <h1>\n    <br/>\n    <br/>\n    👍\n    <br />\n    react-use\n    <br />\n    <br />\n    <br />\n    <br />\n  </h1>\n  <sup>\n    <br />\n    <br />\n    <a href=\"https://www.npmjs.com/package/react-use\">\n       <img src=\"https://img.shields.io/npm/v/react-use.svg\" alt=\"npm package\" />\n    </a>\n    <a href=\"https://circleci.com/gh/streamich/react-use\">\n      <img src=\"https://img.shields.io/circleci/project/github/streamich/react-use/master.svg\" alt=\"CircleCI master\" />\n    </a>\n    <a href=\"https://www.npmjs.com/package/react-use\">\n      <img src=\"https://img.shields.io/npm/dm/react-use.svg\" alt=\"npm downloads\" />\n    </a>\n    <a href=\"http://streamich.github.io/react-use\">\n      <img src=\"https://img.shields.io/badge/demos-🚀-yellow.svg\" alt=\"demos\" />\n    </a>\n    <br />\n    Collection of essential <a href=\"https://reactjs.org/docs/hooks-intro.html\">React Hooks</a>.</em>\n    <em>Port of</em> <a href=\"https://github.com/streamich/libreact\"><code>libreact</code></a>.\n    <br />\n    Translations: <a href=\"https://github.com/zenghongtu/react-use-chinese/blob/master/README.md\">🇨🇳 汉语</a>\n  </sup>\n  <br />\n  <br />\n  <br />\n  <br />\n  <pre>npm i <a href=\"https://www.npmjs.com/package/react-use\">react-use</a></pre>\n  <br />\n  <br />\n  <br />\n  <br />\n  <br />\n</div>\n\n- [**Sensors**](./docs/Sensors.md)\n  - [`useBattery`](./docs/useBattery.md) &mdash; tracks device battery state. [![][img-demo]](https://codesandbox.io/s/qlvn662zww)\n  - [`useGeolocation`](./docs/useGeolocation.md) &mdash; tracks geo location state of user's device. [![][img-demo]](https://streamich.github.io/react-use/?path=/story/sensors-usegeolocation--demo)\n  - [`useHover` and `useHoverDirty`](./docs/useHover.md) &mdash; tracks mouse hover state of some element. [![][img-demo]](https://codesandbox.io/s/zpn583rvx)\n  - [`useHash`](./docs/useHash.md) &mdash; tracks location hash value. [![][img-demo]](https://streamich.github.io/react-use/?path=/story/sensors-usehash--demo)\n  - [`useIdle`](./docs/useIdle.md) &mdash; tracks whether user is being inactive.\n  - [`useIntersection`](./docs/useIntersection.md) &mdash; tracks an HTML element's intersection. [![][img-demo]](https://streamich.github.io/react-use/?path=/story/sensors-useintersection--demo)\n  - [`useKey`](./docs/useKey.md), [`useKeyPress`](./docs/useKeyPress.md), [`useKeyboardJs`](./docs/useKeyboardJs.md), and [`useKeyPressEvent`](./docs/useKeyPressEvent.md) &mdash; track keys. [![][img-demo]](https://streamich.github.io/react-use/?path=/story/sensors-usekeypressevent--demo)\n  - [`useLocation`](./docs/useLocation.md) and [`useSearchParam`](./docs/useSearchParam.md) &mdash; tracks page navigation bar location state.\n  - [`useLongPress`](./docs/useLongPress.md) &mdash; tracks long press gesture of some element.\n  - [`useMedia`](./docs/useMedia.md) &mdash; tracks state of a CSS media query. [![][img-demo]](https://streamich.github.io/react-use/?path=/story/sensors-usemedia--demo)\n  - [`useMediaDevices`](./docs/useMediaDevices.md) &mdash; tracks state of connected hardware devices.\n  - [`useMotion`](./docs/useMotion.md) &mdash; tracks state of device's motion sensor.\n  - [`useMouse` and `useMouseHovered`](./docs/useMouse.md) &mdash; tracks state of mouse position. [![][img-demo]](https://streamich.github.io/react-use/?path=/story/sensors-usemouse--docs)\n  - [`useMouseWheel`](./docs/useMouseWheel.md) &mdash; tracks deltaY of scrolled mouse wheel. [![][img-demo]](https://streamich.github.io/react-use/?path=/story/sensors-usemousewheel--docs)\n  - [`useNetworkState`](./docs/useNetworkState.md) &mdash; tracks the state of browser's network connection. [![][img-demo]](https://streamich.github.io/react-use/?path=/story/sensors-usenetworkstate--demo)\n  - [`useOrientation`](./docs/useOrientation.md) &mdash; tracks state of device's screen orientation.\n  - [`usePageLeave`](./docs/usePageLeave.md) &mdash; triggers when mouse leaves page boundaries.\n  - [`useScratch`](./docs/useScratch.md) &mdash; tracks mouse click-and-scrub state.\n  - [`useScroll`](./docs/useScroll.md) &mdash; tracks an HTML element's scroll position. [![][img-demo]](https://streamich.github.io/react-use/?path=/story/sensors-usescroll--docs)\n  - [`useScrolling`](./docs/useScrolling.md) &mdash; tracks whether HTML element is scrolling.\n  - [`useStartTyping`](./docs/useStartTyping.md) &mdash; detects when user starts typing.\n  - [`useWindowScroll`](./docs/useWindowScroll.md) &mdash; tracks `Window` scroll position. [![][img-demo]](https://streamich.github.io/react-use/?path=/story/sensors-usewindowscroll--docs)\n  - [`useWindowSize`](./docs/useWindowSize.md) &mdash; tracks `Window` dimensions. [![][img-demo]](https://codesandbox.io/s/m7ln22668)\n  - [`useMeasure`](./docs/useMeasure.md) and [`useSize`](./docs/useSize.md) &mdash; tracks an HTML element's dimensions. [![][img-demo]](https://streamich.github.io/react-use/?path=/story/sensors-usemeasure--demo)\n  - [`createBreakpoint`](./docs/createBreakpoint.md) &mdash; tracks `innerWidth`\n  - [`useScrollbarWidth`](./docs/useScrollbarWidth.md) &mdash; detects browser's native scrollbars width. [![][img-demo]](https://streamich.github.io/react-use/?path=/story/sensors-usescrollbarwidth--demo)\n  - [`usePinchZoom`](./docs/usePinchZoom.md) &mdash; tracks pointer events to detect pinch zoom in and out status. [![][img-demo]](https://streamich.github.io/react-use/?path=/story/sensors-usePinchZoom--demo)\n    <br/>\n    <br/>\n- [**UI**](./docs/UI.md)\n  - [`useAudio`](./docs/useAudio.md) &mdash; plays audio and exposes its controls. [![][img-demo]](https://codesandbox.io/s/2o4lo6rqy)\n  - [`useClickAway`](./docs/useClickAway.md) &mdash; triggers callback when user clicks outside target area.\n  - [`useCss`](./docs/useCss.md) &mdash; dynamically adjusts CSS.\n  - [`useDrop` and `useDropArea`](./docs/useDrop.md) &mdash; tracks file, link and copy-paste drops.\n  - [`useFullscreen`](./docs/useFullscreen.md) &mdash; display an element or video full-screen. [![][img-demo]](https://streamich.github.io/react-use/?path=/story/ui-usefullscreen--demo)\n  - [`useSlider`](./docs/useSlider.md) &mdash; provides slide behavior over any HTML element. [![][img-demo]](https://streamich.github.io/react-use/?path=/story/ui-useslider--demo)\n  - [`useSpeech`](./docs/useSpeech.md) &mdash; synthesizes speech from a text string. [![][img-demo]](https://codesandbox.io/s/n090mqz69m)\n  - [`useVibrate`](./docs/useVibrate.md) &mdash; provide physical feedback using the [Vibration API](https://developer.mozilla.org/en-US/docs/Web/API/Vibration_API). [![][img-demo]](https://streamich.github.io/react-use/?path=/story/ui-usevibrate--demo)\n  - [`useVideo`](./docs/useVideo.md) &mdash; plays video, tracks its state, and exposes playback controls. [![][img-demo]](https://streamich.github.io/react-use/?path=/story/ui-usevideo--demo)\n    <br/>\n    <br/>\n- [**Animations**](./docs/Animations.md)\n  - [`useRaf`](./docs/useRaf.md) &mdash; re-renders component on each `requestAnimationFrame`.\n  - [`useInterval`](./docs/useInterval.md) and [`useHarmonicIntervalFn`](./docs/useHarmonicIntervalFn.md) &mdash; re-renders component on a set interval using `setInterval`.\n  - [`useSpring`](./docs/useSpring.md) &mdash; interpolates number over time according to spring dynamics.\n  - [`useTimeout`](./docs/useTimeout.md) &mdash; re-renders component after a timeout.\n  - [`useTimeoutFn`](./docs/useTimeoutFn.md) &mdash; calls given function after a timeout. [![][img-demo]](https://streamich.github.io/react-use/?path=/story/animation-usetimeoutfn--demo)\n  - [`useTween`](./docs/useTween.md) &mdash; re-renders component, while tweening a number from 0 to 1. [![][img-demo]](https://codesandbox.io/s/52990wwzyl)\n  - [`useUpdate`](./docs/useUpdate.md) &mdash; returns a callback, which re-renders component when called.\n    <br/>\n    <br/>\n- [**Side-effects**](./docs/Side-effects.md)\n  - [`useAsync`](./docs/useAsync.md), [`useAsyncFn`](./docs/useAsyncFn.md), and [`useAsyncRetry`](./docs/useAsyncRetry.md) &mdash; resolves an `async` function.\n  - [`useBeforeUnload`](./docs/useBeforeUnload.md) &mdash; shows browser alert when user try to reload or close the page.\n  - [`useCookie`](./docs/useCookie.md) &mdash; provides way to read, update and delete a cookie. [![][img-demo]](https://streamich.github.io/react-use/?path=/story/side-effects-usecookie--demo)\n  - [`useCopyToClipboard`](./docs/useCopyToClipboard.md) &mdash; copies text to clipboard.\n  - [`useDebounce`](./docs/useDebounce.md) &mdash; debounces a function. [![][img-demo]](https://streamich.github.io/react-use/?path=/story/side-effects-usedebounce--demo)\n  - [`useError`](./docs/useError.md) &mdash; error dispatcher. [![][img-demo]](https://streamich.github.io/react-use/?path=/story/side-effects-useerror--demo)\n  - [`useFavicon`](./docs/useFavicon.md) &mdash; sets favicon of the page.\n  - [`useLocalStorage`](./docs/useLocalStorage.md) &mdash; manages a value in `localStorage`.\n  - [`useLockBodyScroll`](./docs/useLockBodyScroll.md) &mdash; lock scrolling of the body element.\n  - [`useRafLoop`](./docs/useRafLoop.md) &mdash; calls given function inside the RAF loop.\n  - [`useSessionStorage`](./docs/useSessionStorage.md) &mdash; manages a value in `sessionStorage`.\n  - [`useThrottle` and `useThrottleFn`](./docs/useThrottle.md) &mdash; throttles a function. [![][img-demo]](https://streamich.github.io/react-use/?path=/story/side-effects-usethrottle--demo)\n  - [`useTitle`](./docs/useTitle.md) &mdash; sets title of the page.\n  - [`usePermission`](./docs/usePermission.md) &mdash; query permission status for browser APIs.\n    <br/>\n    <br/>\n- [**Lifecycles**](./docs/Lifecycles.md)\n  - [`useEffectOnce`](./docs/useEffectOnce.md) &mdash; a modified [`useEffect`](https://reactjs.org/docs/hooks-reference.html#useeffect) hook that only runs once.\n  - [`useEvent`](./docs/useEvent.md) &mdash; subscribe to events.\n  - [`useLifecycles`](./docs/useLifecycles.md) &mdash; calls `mount` and `unmount` callbacks.\n  - [`useMountedState`](./docs/useMountedState.md) and [`useUnmountPromise`](./docs/useUnmountPromise.md) &mdash; track if component is mounted.\n  - [`usePromise`](./docs/usePromise.md) &mdash; resolves promise only while component is mounted.\n  - [`useLogger`](./docs/useLogger.md) &mdash; logs in console as component goes through life-cycles.\n  - [`useMount`](./docs/useMount.md) &mdash; calls `mount` callbacks.\n  - [`useUnmount`](./docs/useUnmount.md) &mdash; calls `unmount` callbacks.\n  - [`useUpdateEffect`](./docs/useUpdateEffect.md) &mdash; run an `effect` only on updates.\n  - [`useIsomorphicLayoutEffect`](./docs/useIsomorphicLayoutEffect.md) &mdash; `useLayoutEffect` that that works on server.\n  - [`useDeepCompareEffect`](./docs/useDeepCompareEffect.md), [`useShallowCompareEffect`](./docs/useShallowCompareEffect.md), and [`useCustomCompareEffect`](./docs/useCustomCompareEffect.md)\n    <br/>\n    <br/>\n- [**State**](./docs/State.md)\n  - [`createMemo`](./docs/createMemo.md) &mdash; factory of memoized hooks.\n  - [`createReducer`](./docs/createReducer.md) &mdash; factory of reducer hooks with custom middleware.\n  - [`createReducerContext`](./docs/createReducerContext.md) and [`createStateContext`](./docs/createStateContext.md) &mdash; factory of hooks for a sharing state between components.\n  - [`useDefault`](./docs/useDefault.md) &mdash; returns the default value when state is `null` or `undefined`.\n  - [`useGetSet`](./docs/useGetSet.md) &mdash; returns state getter `get()` instead of raw state.\n  - [`useGetSetState`](./docs/useGetSetState.md) &mdash; as if [`useGetSet`](./docs/useGetSet.md) and [`useSetState`](./docs/useSetState.md) had a baby.\n  - [`useLatest`](./docs/useLatest.md) &mdash; returns the latest state or props\n  - [`usePrevious`](./docs/usePrevious.md) &mdash; returns the previous state or props. [![][img-demo]](https://codesandbox.io/s/fervent-galileo-krgx6)\n  - [`usePreviousDistinct`](./docs/usePreviousDistinct.md) &mdash; like `usePrevious` but with a predicate to determine if `previous` should update.\n  - [`useObservable`](./docs/useObservable.md) &mdash; tracks latest value of an `Observable`.\n  - [`useRafState`](./docs/useRafState.md) &mdash; creates `setState` method which only updates after `requestAnimationFrame`. [![][img-demo]](https://streamich.github.io/react-use/?path=/story/state-userafstate--demo)\n  - [`useSetState`](./docs/useSetState.md) &mdash; creates `setState` method which works like `this.setState`. [![][img-demo]](https://codesandbox.io/s/n75zqn1xp0)\n  - [`useStateList`](./docs/useStateList.md) &mdash; circularly iterates over an array. [![][img-demo]](https://codesandbox.io/s/bold-dewdney-pjzkd)\n  - [`useToggle` and `useBoolean`](./docs/useToggle.md) &mdash; tracks state of a boolean. [![][img-demo]](https://codesandbox.io/s/focused-sammet-brw2d)\n  - [`useCounter` and `useNumber`](./docs/useCounter.md) &mdash; tracks state of a number. [![][img-demo]](https://streamich.github.io/react-use/?path=/story/state-usecounter--demo)\n  - [`useList`](./docs/useList.md) ~and [`useUpsert`](./docs/useUpsert.md)~ &mdash; tracks state of an array. [![][img-demo]](https://codesandbox.io/s/wonderful-mahavira-1sm0w)\n  - [`useMap`](./docs/useMap.md) &mdash; tracks state of an object. [![][img-demo]](https://codesandbox.io/s/quirky-dewdney-gi161)\n  - [`useSet`](./docs/useSet.md) &mdash; tracks state of a Set. [![][img-demo]](https://codesandbox.io/s/bold-shtern-6jlgw)\n  - [`useQueue`](./docs/useQueue.md) &mdash; implements simple queue.\n  - [`useStateValidator`](./docs/useStateValidator.md) &mdash; tracks state of an object. [![][img-demo]](https://streamich.github.io/react-use/?path=/story/state-usestatevalidator--demo)\n  - [`useStateWithHistory`](./docs/useStateWithHistory.md) &mdash; stores previous state values and provides handles to travel through them. [![][img-demo]](https://streamich.github.io/react-use/?path=/story/state-usestatewithhistory--demo)\n  - [`useMultiStateValidator`](./docs/useMultiStateValidator.md) &mdash; alike the `useStateValidator`, but tracks multiple states at a time. [![][img-demo]](https://streamich.github.io/react-use/?path=/story/state-usemultistatevalidator--demo)\n  - [`useMediatedState`](./docs/useMediatedState.md) &mdash; like the regular `useState` but with mediation by custom function. [![][img-demo]](https://streamich.github.io/react-use/?path=/story/state-usemediatedstate--demo)\n  - [`useFirstMountState`](./docs/useFirstMountState.md) &mdash; check if current render is first. [![][img-demo]](https://streamich.github.io/react-use/?path=/story/state-usefirstmountstate--demo)\n  - [`useRendersCount`](./docs/useRendersCount.md) &mdash; count component renders. [![][img-demo]](https://streamich.github.io/react-use/?path=/story/state-userenderscount--demo)\n  - [`createGlobalState`](./docs/createGlobalState.md) &mdash; cross component shared state.[![][img-demo]](https://streamich.github.io/react-use/?path=/story/state-createglobalstate--demo)\n  - [`useMethods`](./docs/useMethods.md) &mdash; neat alternative to `useReducer`. [![][img-demo]](https://streamich.github.io/react-use/?path=/story/state-usemethods--demo)\n    <br/>\n    <br/>\n- [**Miscellaneous**]()\n  - [`useEnsuredForwardedRef`](./docs/useEnsuredForwardedRef.md) and [`ensuredForwardRef`](./docs/useEnsuredForwardedRef.md) &mdash; use a React.forwardedRef safely. [![][img-demo]](https://streamich.github.io/react-use/?path=/story/state-useensuredforwardedref--demo)\n\n<br />\n<br />\n<br />\n<br />\n<br />\n<br />\n<br />\n\n<p align=\"center\">\n  <a href=\"./docs/Usage.md\"><strong>Usage</strong></a> &mdash; how to import.\n  <br />\n  <a href=\"./LICENSE\"><strong>Unlicense</strong></a> &mdash; public domain.\n  <br />\n  <a href=\"https://opencollective.com/react-use/contribute\"><strong>Support</strong></a> &mdash; add yourself to backer list below.\n</p>\n\n<br />\n<br />\n<br />\n<br />\n<br />\n\n[img-demo]: https://img.shields.io/badge/demo-%20%20%20%F0%9F%9A%80-green.svg\n\n<div align=\"center\">\n  <h1>Contributors</h1>\n</div>\n\n<br />\n<br />\n\n<a href=\"https://github.com/streamich/react-use/graphs/contributors\"><img src=\"https://opencollective.com/react-use/contributors.svg?width=890&button=false\" /></a>\n\n<br />\n<br />\n<br />\n<br />\n<br />\n","publish_time":1591608040951,"_cnpm_publish_time":1591608040951,"dist-tags":{"alpha":"15.0.0-alpha.1","latest":"17.6.1"}}