Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

51 Commits

Repository files navigation

react-count-down

npm version

react-count-down is a simple count down component using react.

Installation

yarn add react-count-down

Usage

importCountdownfrom'react-count-down'importReactDOMfrom'react-dom'importReact,{Component,PropTypes}from'react'constcb=()=>{console.log('expired callback')}constOPTIONS={endDate: '03/01/2020 10:55 AM',prefix: 'until my birthday!',
cb
}constTestComponent=()=>(<div><Countdownoptions={OPTIONS}/></div>)ReactDOM.render(<TestComponent/>,document.getElementById('root'))

Development

yarn
yarn dev

Test

yarn test

Build

yarn
yarn build

Publish

npm login
npm version patch
git add -A
git push origin master
npm publish

License

MIT

About

A count down react component

Resources

Stars

35 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages