GoScrobble/web/node_modules/@restart/hooks
2022-04-25 14:48:54 +12:00
..
cjs 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
esm 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
useAnimationFrame 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
useBreakpoint 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
useCallbackRef 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
useCommittedRef 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
useCustomEffect 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
useDebouncedCallback 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
useDebouncedState 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
useEventCallback 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
useEventListener 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
useFocusManager 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
useForceUpdate 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
useGlobalListener 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
useImage 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
useImmediateUpdateEffect 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
useIntersectionObserver 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
useInterval 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
useIsomorphicEffect 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
useMap 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
useMediaQuery 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
useMergedRefs 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
useMergeState 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
useMergeStateFromProps 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
useMounted 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
useMountEffect 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
useMutationObserver 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
usePrevious 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
useRafInterval 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
useRefWithInitialValueFactory 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
useResizeObserver 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
useSafeState 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
useSet 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
useStableMemo 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
useStateAsync 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
useThrottledEventHandler 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
useTimeout 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
useToggleState 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
useUpdatedRef 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
useUpdateEffect 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
useWillUnmount 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
LICENSE 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
package.json 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
README.md 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00

@restart/hooks npm

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)