You should set type of setValue inside IDatePickerProps to:
setValue : React.Dispatch<React.SetStateAction<string>>
Or change setValue inside onChangeHandler to:
setValue: (value: string) => void;
You should set type of setValue inside IDatePickerProps to:
setValue : React.Dispatch<React.SetStateAction<string>>
Or change setValue inside onChangeHandler to:
setValue: (value: string) => void;