Hi,
I am having a bit of trouble with dynamically generate DatePicker. All the DataPicker seems to changed to the same selected value whenever any one of them changes.
It seems that
const [selectedCompleteDate, setCompleteDate] = React.useState(new Date());
const handleCompleteDateChange = (date) => {
setCompleteDate(date);
};
only works for a single DatePicker component. How should I rewrite it to make it work for an arbitrary number of DatePicker array?