Created
January 25, 2017 21:04
-
-
Save raullucero/35351de1fc8df570becd67292ec5710c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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