[](https://www.npmjs.com/package/react-datepicker2) [](https://www.npmjs.com/package/react-datepicker2) [ {
super(props);
this.state = { value: moment() };
}
render() {
return onChange={value => this.setState({ value })}
value={this.state.value}
/>
}
}
`
Configuration
The most basic use of the DatePicker can be described with:
`js
this.setState({ value })} value={this.state.value} />
`
Local Development
The master branch contains the latest version of the Datepicker2 component. To start your example app, you can run npm install then npm start`. This starts a simple webserver on http://localhost:8080.