Skip to content

Instantly share code, notes, and snippets.

@adamrneary
Last active August 29, 2015 14:08
Show Gist options
  • Save adamrneary/a759fd68208808020598 to your computer and use it in GitHub Desktop.
Save adamrneary/a759fd68208808020598 to your computer and use it in GitHub Desktop.
Sample implementation of react-time-slider component
var TimeSlider = require('react-time-slider');
var Example = React.createClass({
render: function() {
var timeSlider = TimeSlider({
minFrom: 201402,
maxTo: 201411,
initialFrom: 201404,
initialTo: 201408,
onChange: function(values) {
console.log(values)
}
});
return timeSlider;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment