Skip to main content

Overview

TL;DRโ€‹

  • It is a collection of React hooks
  • Motivations:
    • Make common tasks easier
    • Why create these hooks on every project? ๐ŸŒ
      Just install this package ๐Ÿš€
  • Why choose this package?
    • Simple, no over-abstraction
    • Only 1.6 kB in size
    • Tree-shakeable to remove unused modules from production builds
    • TypeScript ๐ŸŸฆ
    • SSR-friendly ๐ŸŒ
    • Unit tested ๐Ÿงช

  • 557.0B
    useCountDown
  • 445.0B
    useDebounce
  • 283.0B
    useDebounceFn
  • 244.0B
    useFirstRender
  • 574.0B
    useInView
  • 498.0B
    useIntersection
  • 295.0B
    useIsomorphicLayoutEffect
  • 658.0B
    useLocalStorage
  • 220.0B
    usePrevious
  • 362.0B
    usePreviousDistinct
  • 563.0B
    useSessionStorage
  • 477.0B
    useThrottle
  • 301.0B
    useThrottleFn
  • 227.0B
    useToggle
  • 297.0B
    useUpdateEffect
  • 295.0B
    useWindowEvent

Getting Startedโ€‹

yarn add react-power-ups

Hook Listโ€‹

State ๐Ÿšฅโ€‹

Event ๐Ÿ—“โ€‹

Optimization ๐Ÿš€โ€‹

Storage ๐Ÿ—„โ€‹


Changelogโ€‹

https://github.com/afiiif/react-power-ups/releases