How to use the react-countup.default function in react-countup

To help you get started, we’ve selected a few react-countup examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github haimich / billy / src / common / components / stats / PanelComponent.tsx View on Github external
import * as React from 'react';
import * as ReactDOM from 'react-dom'
import t from '../../helpers/i18n'
let CountUp = require('react-countup').default

interface Props {
  title: string
  value: number
  icon: string
  suffix?: string
}

export default class PanelComponent extends React.Component {

  render() {
    return (
      <div>
        <div>
          <i aria-hidden="true"></i>
        </div></div>

react-countup

A React component wrapper around CountUp.js

MIT
Latest version published 8 months ago

Package Health Score

72 / 100
Full package analysis