Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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