[**@twipped/hooks**](../../README.md) • **Docs**

***

# Function: useIncrementer()

> **useIncrementer**(`value`, `step`): [`number`, () => `void`]

Returns an integer that increments any time the passed value changes

## Parameters

• **value**: `any`

Value to watch for changes

• **step**: `number`= `1`

Amount to increment by.

## Returns

[`number`, () => `void`]

The incrementing value

## Function

useIncrementer

## Source

[hooks/useIncrementer.js:13](https://github.com/Twipped/hooks/blob/main/hooks/useIncrementer.js#L13)
