react-tick-tock

0.0.2 • Public • Published

react-tick-tock

Simple React component for a countdown timer

npm install react-tick-tock --save

Example

var Timer = require('react-tick-tock');
 
var RenderTag = React.createClass({
    render: function () {
        return (
            <Div>
                {this.props.children}
            </Div>
        )
    }
})
 
var App = React.createClass({
 
    render: function () {
        return (
                <Timer
                    duration={30}
                    renderTag={RenderTag}
                />
        );
    }
});
 
 

Changelog

0.0.1

  • Simple countdown timer

Contributors

  • Will Washburn (@willwashburn)

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i react-tick-tock

    Weekly Downloads

    1

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • willwashburn