react-hooks-elib
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

NPM NPM License

React Hooks Elib

A collection of hooks and utilities for React.

Features 🚀

  • 🔮 Typescript

    Written in typescript so you get the advantage of strong type safety

  • 🧠 Server Side Ready

    All hooks handle SSR rendering and work well with frameworks like Next/Gatsby

Installation

    npm i react-hooks-elib
    # or
    yarn add react-hooks-elib

CodeSandbox

Refer to this CodeSandbox for usage reference.

Hooks

List of hooks included in the library so far.

  • useWindowSize — Tracks browser Window dimensions
  • useWindowScroll — Tracks Window scroll position.
  • useToggle and useBoolean — Tracks and manages state of a boolean
  • useClipboard — Hook to work with the clipboard
  • useLocalStorage — Hook to work with the local storage API. Supports syncing local storage values across tabs and rerender on change
  • useWindowSize
  • useWindowScroll
  • useWindowEvent
  • useTimeout
  • useSafeLayoutEffect
  • usePrevious
  • useConst
  • useMergeRefs
  • useInterval
  • useLatestRef
  • useCallbackRef

Authors

🔗 Links

portfolio linkedin twitter

License

MIT

Package Sidebar

Install

npm i react-hooks-elib

Weekly Downloads

9

Version

0.0.6

License

MIT

Unpacked Size

89.6 kB

Total Files

20

Last publish

Collaborators

  • endalk200