JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://fb.me/react-with-addons-0.11.0.js"></script>
<script src="http://fb.me/JSXTransformer-0.11.0.js"></script>
<link rel="stylesheet" href="http://github.hubspot.com/odometer/themes/odometer-theme-digital.css">
<script src="http://github.hubspot.com/odometer/odometer.js"></script>
<script src="http://fb.me/react-js-fiddle-integration.js"></script>
JavaScript 1.7
OdometerComponent = React.createClass({
componentDidMount: function(){
this.odometer = new Odometer({
el: this.getDOMNode(),
value: this.props.value,
format: '',
theme: 'digital',
});
},
componentDidUpdate: function() {
this.odometer.update(this.props.value)
},
render: function() {
return React.DOM.div()
}
})
setInterval(function() {
React.renderComponent(OdometerComponent({value: Date.now()}), document.body);
}, 2500)