0.7.0 • Published 2 years ago

@lyonph/react-hooks v0.7.0

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

Hooks

  • useCallbackCondition: Memoizes a callback function conditionally.
  • useConstant: Creates a component-level constant.
  • useConstantCallback: Creates a component-level constant callback.
  • useForceUpdate: Creates a callback that re-renders the component when called.
  • useFreshLazyRef:
  • useFreshState: useState but resets to initial state when dependency changes.
  • useFullscreenElement: Tracks document.fullscreenElement.
  • useIsomorphicEffect: SSR-friendly useLayoutEffect.
  • useLazyRef: useRef but with initializer callback.
  • useMediaQuery: Tracks media query match.
  • useMemoCondition: Memoizes conditionally.
  • useMountedState: Creates a callback that tracks the lifecycle state of the component.
  • useOnlineStatus: Tracks navigator.onLine.
  • usePageVisibility: Tracks document.visibilityState.
  • usePrefersDarkTheme
  • usePrefersLightTheme
  • usePrefersReducedMotion
  • useReadyState
  • useRenderCount
  • useSubscription
  • useWindowScroll
  • useWindowSize
0.7.0

2 years ago

0.6.0

2 years ago

0.5.1

3 years ago

0.5.0

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.3.5

3 years ago

0.3.4

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.3.3

3 years ago

0.3.0

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago