Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 546 Bytes

README.md

File metadata and controls

26 lines (16 loc) · 546 Bytes

react-count-down

react-count-down is a react component help to display a simple count down number

Installation

npm install react-number-count-down --save

Usage

import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import CountDown from 'react-number-count-down';

ReactDOM.render(
  <CountDown from={0} to={60} type={'+'} addon={'seconds'} interval={1} onComplete={() => alert('Count down completed')} />,
  document.getElementById('root'));

Development

npm install
npm start