const [count, actions] = useCounter(20)
const [count, actions, couterState] = useCounter(20, { min: 1, max: 100 })
// Increment the counter
actions.inc()
actions.inc(2)
// Decrement the counter
actions.dec()
actions.dec(4)
// Set the counter to a specific value
actions.set(10)
// Reset the counter to the initial value (or reset the initial value as well)
actions.reset()
actions.reset(12)
// Get the value of the counter, the value is count
acitons.get()