UNPKG

react-hooks-and-com

Version:

一个现代化的 React 自定义 Hooks 库,提供 20+ 个实用的自定义 Hooks。使用 TypeScript 和 Tailwind CSS 构建,完全类型安全。

35 lines 2.53 kB
export { useCounter } from './useCounter/useCounter'; export type { UseCounterOptions, UseCounterReturn } from './useCounter/useCounter'; export { usePrevious } from './usePrevious/usePrevious'; export { useToggle } from './useToggle/useToggle'; export type { UseToggleOptions, UseToggleReturn } from './useToggle/useToggle'; export { useWindowSize } from './useWindowSize/useWindowSize'; export type { WindowSize, UseWindowSizeOptions } from './useWindowSize/useWindowSize'; export { useLocalStorage } from './useLocalStorage/useLocalStorage'; export type { UseLocalStorageOptions, UseLocalStorageReturn, Serializer } from './useLocalStorage/useLocalStorage'; export { useDebounce } from './useDebounce/useDebounce'; export type { UseDebounceOptions, UseDebounceReturn } from './useDebounce/useDebounce'; export { useThrottle } from './useThrottle/useThrottle'; export type { UseThrottleOptions, UseThrottleReturn } from './useThrottle/useThrottle'; export { useClickAway } from './useClickAway/useClickAway'; export type { UseClickAwayOptions, UseClickAwayReturn } from './useClickAway/useClickAway'; export { useInView } from './useInView/useInView'; export type { UseInViewOptions, UseInViewReturn } from './useInView/useInView'; export { useTimeAgo } from './useTimeAgo/useTimeAgo'; export type { UseTimeAgoOptions, UseTimeAgoReturn, TimeUnit, Locale } from './useTimeAgo/useTimeAgo'; export { useQueue } from './useQueue/useQueue'; export type { UseQueueOptions, UseQueueReturn } from './useQueue/useQueue'; export { usePolling } from './usePolling/usePolling'; export type { UsePollingOptions, UsePollingReturn } from './usePolling/usePolling'; export { useMouse } from './useMouse/useMouse'; export type { UseMouseOptions, UseMouseReturn, MousePosition } from './useMouse/useMouse'; export { useFullscreen } from './useFullscreen/useFullscreen'; export type { UseFullscreenOptions, UseFullscreenReturn } from './useFullscreen/useFullscreen'; export { useEventBus } from './useEventBus/useEventBus'; export type { UseEventBusOptions, UseEventBusReturn } from './useEventBus/useEventBus'; export { useElementSize } from './useElementSize/useElementSize'; export type { UseElementSizeOptions, UseElementSizeReturn, ElementSize } from './useElementSize/useElementSize'; export { useClipboard } from './useClipboard/useClipboard'; export type { UseClipboardOptions, UseClipboardReturn } from './useClipboard/useClipboard'; export { useUpdateEffect } from './useUpdateEffect/useUpdateEffect'; //# sourceMappingURL=index.d.ts.map