wojtekmaj / react-daterange-picker

A date range picker for your React app.
https://projects.wojtekmaj.pl/react-daterange-picker
MIT License
524 stars 64 forks source link

Suggestion: always return an array #339

Closed aqeelat closed 2 months ago

aqeelat commented 6 months ago

The current code could return a single value or an array of values. Always returning an array (or better yet, an object {from:Date|null, to:Date|null}), would make the client code more readable. This could be linked to a prop requires both values to be set (to make it less of a breaking change).

github-actions[bot] commented 3 months ago

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 14 days.

github-actions[bot] commented 2 months ago

This issue was closed because it has been stalled for 14 days with no activity.