React Hooks count down components
npm install react-hooks-count-down
import CountDown from 'react-hooks-count-down'
import React from 'react'
const App = () => {
return <CountDown></CountDown>
}
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
}
MIT