0.1.16 • Published 3 years ago

react-hooks-count-down v0.1.16

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

react-count-down

React Hooks count down components

Install

npm install react-hooks-count-down

How use

import CountDown from 'react-hooks-count-down'
import React from 'react'
const App = () => {
  return <CountDown></CountDown>
}
Props:

details look Demo

{
  // day*hour*minutes*seconds*milliseconds 
  // for example 3 * 24 * 60 * 60 * 1000
  time?: number 
  format?: string // DD hh:mm:ss:ms
  getTime?: (time: Timer) => void // get count down time
  renderContent?: (args: Content) => ReactElement<any, any> | null // custom render count down
  actionRender?: (args: Content) => React.ReactNode
  // action custom 
}

License

MIT

0.1.16

3 years ago

0.1.15

3 years ago

0.1.14

3 years ago

0.1.13

3 years ago

0.1.12

3 years ago

0.1.11

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago