🚀 Socket Launch Week 🚀 Day 2: Introducing Repository Labels and Security Policies.Learn More
Socket
Sign inDemoInstall
Socket

reactjs-countdown

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reactjs-countdown

A simple countdown timer component for React.js

0.0.3
Source
npm
Version published
Weekly downloads
101
-53.24%
Maintainers
1
Weekly downloads
 
Created
Source

reactjs-countdown

A simple countdown timer component for React.js.

This package is inspired from the awesome vuejs-countdown package.

screenshot

Installation

npm

npm i reactjs-countdown --save

Usage

import React, { Component } from 'react';
import CountDown from 'reactjs-countdown';

class Something extends Component {
    constructor(props) {
        // something
    }

    render() {
        return(
            <div>
                <CountDown
                    deadline="August 22, 2022"
                />
                or
                <CountDown
                    end="August 22, 2022"
                />
            </div>
        );
    }
}

export default Something;

Other Config

You can stop the countdown timer anytime by passing true (Boolean) with stop props.

Caution

Please don't provide any confusing date format since it has no dependency to Moment.js or any other date helpers. You can check here more date format.

Keywords

countdown

FAQs

Package last updated on 05 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts