title: How can i pass multiple dates and enable only between selected dates and disable other than the selected dates in reactjs
body: <pre><code>const disableNotRangeDate = current =&gt;
  state.tourSeasonalDates.some(date =&gt;
    !current.isBetween(moment(date['startRange']), moment(date['endRange'])) 
  );
  
  {state.nonOperationalDates.map(task =&gt; (
            &lt;DateRangeComponent
              onClickMinusButton={() =&gt; deleteNonOperationalDateRow(task)}
              seasonKey={task.index}
              // onChange={onChangeTourSeasonalDates(task)}
              // ranges={current=&gt;enabledRangeDate(current)}
              disabledDate={current =&gt; disableNotRangeDate(current)}
            /&gt;
          ))}
  </code></pre>
  <p><a href="https://i.stack.imgur.com/czwNN.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/czwNN.jpg" alt="enter image description here" /></a></p>
  <p>//Here while selecting single date i am able to disable other than the selected date but while selecting multiple dates it disables all the dates. But i want it to make able to only select the date between the above selected date i.e. enable the above selected date range and disable other than the selected date range. How can i do that?</p>