A simple countdown component with React <3
View the Project on GitHub LeonidasEsteban/react-simple-countdown
A simple countdown component with React <3
npm install react-simple-countdown --save
import component:
import CountDown from 'react-simple-countdown';
A string width valid date like isoformat or js dates
Custom component class
import React from 'react';
import CountDown from 'react-simple-countdown';
const MyComponent = React.createClass({
render() {
return(<CountDown date="2015-09-12T00:00:00+00:00" className="CountDown"/>);
}
})
React.render(<MyComponent/>, document.body);