ReactJS Daterangepicker - 同一组件中的多个实例

ReactJS Daterangepicker - Multiple instance in same component

如何在同一组件中添加日期范围选择器的多个实例。

<DateRangePicker
  startDate={this.state.startDate}
  startDateId="start_date1"
  endDate={this.state.endDate}
  endDateId="end_date1"
  onDatesChange={({ startDate, endDate }) => {
    this.setState({ startDate, endDate });
  }}
  focusedInput={this.state.focusedInput}
  onFocusChange={focusedInput => this.setState({ focusedInput })}
  displayFormat="DD/MM/YYYY"
  isOutsideRange={day => !isInclusivelyBeforeDay(day, moment())}
/>

得到它与这个包一起工作,https://www.npmjs.com/package/react-date-range-next