title: How to select a default date range in react-datepicker
body: <p>I'm trying to select a default value in the react-datepicker calendar. It's an inline calendar, showing 2 months, with the posibility for select a range of dates:</p>
  <pre><code>    &lt;DatePicker
        inline
        monthsShown={2}
        selectsRange
        startDate={startDate}
        endDate={endDate}
        onChange={(update) =&gt; {
         setDateRange(update);
        }}
      /&gt;
  </code></pre>
  <p>However, in the documentation talks about how to select a range of dates for default but only for two DatePicker components (<a href="https://reactdatepicker.com/#example-date-range" rel="nofollow noreferrer">https://reactdatepicker.com/#example-date-range</a>). I don't find how to make it just with one.</p>
  <p>I'm new making questions if more information is needed I'll update the question. Thank you.</p>