New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

simple-react-timer

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-react-timer

React component that displays a countdown/countup timer.

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-81.25%
Maintainers
1
Weekly downloads
 
Created
Source

React Timer Component

Usage

import Timer from 'simple-react-timer'

<Timer/>

Parameters

startTime (number)

<Timer startTime={1519498418325} />

Result: 01:27 (mm:ss)

countDown (bool)

By default, the timer will do a countup. If you want to do a countdown, add this parameter.

<Timer startTime={1519498418325} countDown />

Result: 240:27 (mmm:ss)

className (string)

You can customize the class of the timer. By default, it's timer.

<Timer startTime={1519498418325} className={'super-dupper-class'} />

Development

In one terminal:

npm i
npm link
npm start

In another terminal:

cd example
npm i
npm link simple-react-timer
npm start

Keywords

FAQs

Package last updated on 25 Oct 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc