JSPM

react-count-up

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 17
  • Score
    100M100P100Q44824F
  • License MIT

React Component to simulate realtime count up

Package Exports

  • react-count-up

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-count-up) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

React-Count-Up

This component will simulate realtime count up.

N]

Install

$ npm i react-count-up -S

Usage

import React from 'react';
import { render } from 'react-dom';
import CountUp from 'react-count-up';

render(
    <CountUp value={1000000} interval={5} incrementMin={1} incrementMax={10} />,
    document.getElementById('app')
);

Props

CountUp.defaultProps = {
    className: '',
    value: 0, //Initial value
    interval: 5,
    incrementMin: 1,
    incrementMax: 10,
    cookieName: 'react-count-up',
    localeString: 'pt-BR', //String with a language sensitive representation of this number.
    persistent: false // Save cookie before unload page and init with the last value
};

MIT Free Software, Hell Yeah!