react-shared-utils
v1.0.1
Published
[![npm](https://img.shields.io/npm/v/react-shared-utils)](https://www.npmjs.com/package/react-shared-utils) [![license](https://img.shields.io/npm/l/react-shared-utils)](https://github.com/js2me/react-shared-utils/blob/master/LICENSE)
Downloads
149
Readme
[!WARNING]
It's fine if you use this library from NPM package with a static versioning in case you want it for some pet-project or to test it's capabilities.But for production use it's strongly recommended to create a fork, because I do not write Changelogs and may break / add some functionality without notice.
react-shared-utils
| path | description | |---------------------------------------------------------------------|--------------------------------------------------------------------------| | loadable | Lazy import of the React component (using Suspense inside) | | attach-ref | Safety assign DOM node to React ref object (ignoring all React warnings) | | hooks/use-click-outside | | hooks/use-constant | | hooks/use-define-ref | | hooks/use-element-ref | | hooks/use-event-listener | | hooks/use-event | | hooks/use-flag | | hooks/use-force-update | | hooks/use-last-defined-value | | hooks/use-resize-observer | | hooks/use-sync-ref | | hooks/use-toggle | | hooks/use-value |