Dashboard sipadu mbip
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
root d8c1b4a1be initial 5 年之前
..
cjs initial 5 年之前
esm initial 5 年之前
useAnimationFrame initial 5 年之前
useBreakpoint initial 5 年之前
useCallbackRef initial 5 年之前
useCommittedRef initial 5 年之前
useEventCallback initial 5 年之前
useEventListener initial 5 年之前
useFocusManager initial 5 年之前
useForceUpdate initial 5 年之前
useGlobalListener initial 5 年之前
useImage initial 5 年之前
useIntersectionObserver initial 5 年之前
useInterval initial 5 年之前
useIsomorphicEffect initial 5 年之前
useMap initial 5 年之前
useMediaQuery initial 5 年之前
useMergeState initial 5 年之前
useMergeStateFromProps initial 5 年之前
useMergedRefs initial 5 年之前
useMounted initial 5 年之前
usePrevious initial 5 年之前
useRafInterval initial 5 年之前
useResizeObserver initial 5 年之前
useSafeState initial 5 年之前
useSet initial 5 年之前
useStableMemo initial 5 年之前
useStateAsync initial 5 年之前
useTimeout initial 5 年之前
useUpdatedRef initial 5 年之前
useWillUnmount initial 5 年之前
LICENSE initial 5 年之前
README.md initial 5 年之前
package.json initial 5 年之前

README.md

@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(), false, 300)