0.0.6 • Published 2 years ago

react-hooks-elib v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

0.0.5

2 years ago

0.0.6

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago