0.7.0 • Published 3 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
3 years ago
0.6.0
3 years ago
0.5.1
4 years ago
0.5.0
4 years ago
0.4.1
4 years ago
0.4.0
4 years ago
0.3.5
4 years ago
0.3.4
4 years ago
0.3.2
4 years ago
0.3.1
4 years ago
0.3.3
4 years ago
0.3.0
4 years ago
0.2.3
4 years ago
0.2.2
4 years ago
0.2.1
5 years ago
0.2.0
5 years ago
0.1.2
5 years ago
0.1.1
5 years ago
0.1.0
5 years ago