0.1.16 • Published 2 years ago

react-hooks-count-down v0.1.16

Weekly downloads
-
License
ISC
Repository
github
Last release
2 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

2 years ago

0.1.15

2 years ago

0.1.14

2 years ago

0.1.13

2 years ago

0.1.12

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago