streamich 9bb7047b73 feat: 🎸 keep global state of all useLockBodyScroll hooks
This change will keep document body locked as long as at least one hook
is enabled on the page. Maybe it makes sense to generalize this logic
for other side-effect hooks. One such hook could be useBlurBody that
blurs page - useful for modals and overlays.
2019-03-24 17:43:35 +01:00
2019-03-24 10:27:38 +11:00
2018-10-29 23:11:53 +01:00
2019-03-23 10:26:14 +00:00
2018-10-27 12:15:13 +02:00
2019-03-23 10:26:14 +00:00
2019-03-24 10:36:36 +11:00
2019-02-24 16:00:48 +01:00
2019-03-13 20:58:57 +01:00
2019-03-22 20:51:06 +01:00



👍
react-use






Collection of essential React Hooks. Port of libreact. See demos.
Translations: 🇨🇳 汉语




npm i react-use








Usage


You need to have React 16.8.1 or later installed to use Hooks API.

You can import each hook individually import useToggle from 'react-use/lib/useToggle'.


License

Unlicense — public domain.

Description
React Hooks — 👍
Readme Unlicense 146 MiB
Languages
TypeScript 99.6%
JavaScript 0.4%