Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mmarkelov committed Nov 1, 2021
1 parent 5acdbb3 commit f31808b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ Amount of decimals to display.

Default: `0`

#### `delay: ?number`
#### `delay: number`

Delay in seconds before starting the transition.

Expand Down Expand Up @@ -282,7 +282,9 @@ Default: [`easeInExpo`](https://github.com/inorganik/countUp.js/blob/master/coun

#### `formattingFn: (value: number) => string`

Function to customize the formatting of the number
Function to customize the formatting of the number.

To prevent component from unnecessary updates this function should be memoized with [useCallback](https://reactjs.org/docs/hooks-reference.html#usecallback)

#### `onEnd: ({ pauseResume, reset, start, update }) => void`

Expand Down

0 comments on commit f31808b

Please sign in to comment.