From b6ec331994dbca016564e7c847d76093700272ff Mon Sep 17 00:00:00 2001 From: Hamid FzM Date: Fri, 3 Nov 2017 03:13:05 +0330 Subject: [PATCH] Get state value from value prop on component contructioon --- dist/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index c2b339f..b5df5ca 100644 --- a/dist/index.js +++ b/dist/index.js @@ -77,7 +77,7 @@ export default class AnimateNumber extends Component { super(props); // default values of state and non-state variables this.state = { - value : 0, + value : props.value, displayValue : 0 } this.dirty = false;