score:1

first save the changes in datepicker where you select the due date to a state. for the second datepicker, give the month after the month in the state as defaultvalue={}.

example:

const [selecteddate, setselecteddate] = usestate();
 
//then update the datepicker default value
defaultvalue={date(selecteddate.getfullyear(), selecteddate.getmonth() + 1, 1)}

Related Query

More Query from same tag