import React, { Component } from 'react'; import logo from './logo.svg'; import 'bootstrap/dist/css/bootstrap.min.css'; import Icon from './icon'; import {Form, Input, FormGroup, Container, Label} from 'reactstrap'; import 'react-dates/initialize'; import 'react-dates/lib/css/_datepicker.css'; import {SingleDatePicker} from 'react-dates'; class App extends Component { constructor(props) { super(props); this.state ={ date: null, focused: null } } render() { return (
} inputIconPosition="after" small={true} block={false} numberOfMonths={1} date={this.state.date} onDateChange={date => this.handleDateChange(date)} focused={this.state.focused} onFocusChange={({ focused }) => this.setState({ focused }) } openDirection="up" hideKeyboardShortcutsPanel={true} />
); } } export default App;