react-modern-timer

A simple timer component for ReactJS

Usage no npm install needed!

<script type="module">
  import reactModernTimer from 'https://cdn.skypack.dev/react-modern-timer';
</script>

README

react-modern-timer

A simple timer component for ReactJS

NPM JavaScript Style Guide

Install

npm i react-modern-timer

Usage

for use Timer Component, you should write codes like:

import React, { Component } from 'react'

import {Timer} from 'react-modern-timer'

class App extends Component {
  render () {
    return (
      <Timer />
    )
  }
}

and for use StopWatch component, you should write codes like:

import React, { Component } from 'react'

import {StopWatch} from 'react-modern-timer'

class App extends Component {
  render () {
    return (
      <StopWatch />
    )
  }
}

License

MIT © askariacc