UNPKG

@hudoro/hooks

Version:

Usefull react hooks for HSD App

12 lines (10 loc) 312 B
import { Dispatch, SetStateAction } from 'react'; type UseCounterReturn = { count: number; increment: () => void; decrement: () => void; reset: () => void; setCount: Dispatch<SetStateAction<number>>; }; export declare function useCounter(initialValue?: number): UseCounterReturn; export {};