Package Exports
- @restart/hooks
- @restart/hooks/globals
- @restart/hooks/index
- @restart/hooks/useAnimationFrame
- @restart/hooks/useBreakpoint
- @restart/hooks/useCallbackRef
- @restart/hooks/useCommittedRef
- @restart/hooks/useCustomEffect
- @restart/hooks/useDebouncedCallback
- @restart/hooks/useDebouncedState
- @restart/hooks/useDebouncedValue
- @restart/hooks/useEventCallback
- @restart/hooks/useEventListener
- @restart/hooks/useFocusManager
- @restart/hooks/useForceUpdate
- @restart/hooks/useGlobalListener
- @restart/hooks/useImage
- @restart/hooks/useImmediateUpdateEffect
- @restart/hooks/useIntersectionObserver
- @restart/hooks/useInterval
- @restart/hooks/useIsInitialRenderRef
- @restart/hooks/useIsomorphicEffect
- @restart/hooks/useMap
- @restart/hooks/useMediaQuery
- @restart/hooks/useMergeState
- @restart/hooks/useMergeStateFromProps
- @restart/hooks/useMergedRefs
- @restart/hooks/useMountEffect
- @restart/hooks/useMounted
- @restart/hooks/useMutationObserver
- @restart/hooks/usePrevious
- @restart/hooks/useRafInterval
- @restart/hooks/useRefWithInitialValueFactory
- @restart/hooks/useResizeObserver
- @restart/hooks/useSafeState
- @restart/hooks/useSet
- @restart/hooks/useStableMemo
- @restart/hooks/useStateAsync
- @restart/hooks/useThrottledEventHandler
- @restart/hooks/useTimeout
- @restart/hooks/useToggleState
- @restart/hooks/useUpdateEffect
- @restart/hooks/useUpdateImmediateEffect
- @restart/hooks/useUpdateLayoutEffect
- @restart/hooks/useUpdatedRef
- @restart/hooks/useWillUnmount
Readme
@restart/hooks 
A set of utility and general-purpose React hooks.
Install
npm install @restart/hooks
Usage
import useInterval from '@restart/hooks/useInterval'
useInterval(() => loop(), 300, false)