react-countup
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -9,5 +9,5 @@ import React from 'react'; | ||
<div className={styles.Wrapper}> | ||
<CountUp className={styles.CountUp} start={0} end={160526} /> | ||
<CountUp className={styles.CountUp} start={0} end={2016} duration={3} separator="" /> | ||
</div>, | ||
document.getElementById('root') | ||
); |
{ | ||
"name": "react-countup", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A React component wrapper around CountUp.js", | ||
@@ -51,2 +51,3 @@ "author": "Glenn Reyes", | ||
"babel-preset-stage-0": "^6.5.0", | ||
"coveralls": "^2.11.9", | ||
"cross-env": "^1.0.8", | ||
@@ -53,0 +54,0 @@ "enzyme": "^2.3.0", |
@@ -14,2 +14,3 @@ import React, { PropTypes } from 'react'; | ||
separator, | ||
decimals, | ||
decimal, | ||
@@ -20,3 +21,3 @@ prefix, | ||
} = this.props; | ||
const countup = new Count(findDOMNode(this), start, end, duration, { | ||
const countup = new Count(findDOMNode(this), start, end, decimals, duration, { | ||
useEasing, | ||
@@ -42,6 +43,7 @@ useGrouping, | ||
start: 0, | ||
end: 100, | ||
duration: 2.5, | ||
end: 2016, | ||
decimals: 0, | ||
duration: 4, | ||
useEasing: true, | ||
useGrouping: true, | ||
useGrouping: false, | ||
separator: ',', | ||
@@ -58,2 +60,3 @@ decimal: '.', | ||
end: PropTypes.number.isRequired, | ||
decimals: PropTypes.number, | ||
duration: PropTypes.number, | ||
@@ -60,0 +63,0 @@ useEasing: PropTypes.bool, |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
11795
193
0
19