@ieremeev/datepicker
@ieremeev/datepicker provides your with the input box and the calendar which helps to pick the date
Installation
Run this command:
npm install @ieremeev/datepicker --save
Usage
var DatePicker = require('@ieremeev/datepicker');
var MyComponent = React.createClass({
getInitialState: function() {
return {
startDate: '',
};
},
handleChange: function(date) {
this.setState({
startDate: date,
});
},
render: function() {
return (
<DatePicker
selected={this.state.startDate}
onChange={this.handleChange}
/>
);
}
});
Props
@ieremeev/datepicker is just a wrapper for react-datepicker with Semantic UI style. You should look at the [react-datepicker documentation][1] for props