From f31808b95b95e430651723e870b640e61c47a8e2 Mon Sep 17 00:00:00 2001 From: Maksim Markelov Date: Mon, 1 Nov 2021 12:47:49 +0300 Subject: [PATCH] Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0b507b02..9325cafa 100644 --- a/README.md +++ b/README.md @@ -214,7 +214,7 @@ Amount of decimals to display. Default: `0` -#### `delay: ?number` +#### `delay: number` Delay in seconds before starting the transition. @@ -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`