Skip to content

v1.0.3

Compare
Choose a tag to compare
@dmtrKovalenko dmtrKovalenko released this 21 Nov 12:00
· 23 commits to master since this release

Here are some highlights ✨

Move to the controlled state

From now this package would accept 1 prop to both inputs => value. It can be updated from outside, so from now we support controlled state.

<DateTimePicker
+ value={this.state.selectedDate} // can be null to display current day or nothing as in uncontrolled mode
- initialDate={this.state.selectedDate}
- defaultTime={this.state.selectedDate}
/>