useCounter
Use simple counter methods to update a number state.
0
Type Definitions
const useCounter: (args?: {
initial?: number;
min?: number;
max?: number;
}) => {
value: number;
inc(step?: React.SetStateAction<number>): void;
dec(step?: React.SetStateAction<number>): void;
set(value: React.SetStateAction<number>): void;
reset(): void;
};