Skip to content
Function

useCounter

Numeric counter with min, max and step bounds.

See useCounter with a live demo

@danixsoft/hooks


useCounter(initialValue?, options?): UseCounterReturn

Parameters

initialValue?

number = 0

options?

UseCounterOptions

Returns

UseCounterReturn