0.7.0 • Published 2 years ago
@lyonph/react-hooks v0.7.0
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
: Tracksdocument.fullscreenElement
.useIsomorphicEffect
: SSR-friendlyuseLayoutEffect
.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
: Tracksnavigator.onLine
.usePageVisibility
: Tracksdocument.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