Skip to content

Instantly share code, notes, and snippets.

@raullucero
Created January 25, 2017 21:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raullucero/35351de1fc8df570becd67292ec5710c to your computer and use it in GitHub Desktop.
Save raullucero/35351de1fc8df570becd67292ec5710c to your computer and use it in GitHub Desktop.
import React, { Component } from 'react';
import { DateRange } from 'react-date-range';
class Dropdown extends Component {
handleSelect() {
console.log('selected');
// Dispatch and action for change the this.state.
// and know what is the current date range selected
}
render() {
return (
<div>
<DateRange
onInit={this.handleSelect}
onChange={this.handleSelect}
/>
</div>
)
}
}
export default Dropdown;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment