Skip to content
zenui/react-hooks

useCounter

Hold a number with stable increment, decrement, set and reset helpers. Optional min, max and step options keep it inside a range, which suits quantity pickers and pagers.

Level
Basic
Since
v1.0.0
import {useCounter} from '@zenuilabs/react-hooks';
Loading demo_

More in State