Skip to content

Instantly share code, notes, and snippets.

@mtetlow
Created March 20, 2015 16:43
Show Gist options
  • Select an option

  • Save mtetlow/58db08354296322d9264 to your computer and use it in GitHub Desktop.

Select an option

Save mtetlow/58db08354296322d9264 to your computer and use it in GitHub Desktop.
var WrappedCalendar = React.createClass({
mixins:[
require('react-onclickoutside'),
],
handleClickOutside: function(e){
this.props.hideDatePicker();
},
render: function(){
return(
<Calendar value={this.props.deadlineDate} onChange={this.props.dateChanged} footer={true} />
);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment