Skip to content

Commit 167d842

Browse files
committed
Bumps to v3.0.0
1 parent 561e35a commit 167d842

File tree

3 files changed

+3
-13
lines changed

3 files changed

+3
-13
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ A date and time picker in the same React.js component. It can be used as a datep
77

88
> **Back to the roots!** Thanks to the people of [YouCanBook.me (best scheduling tool)](https://youcanbook.me) for sponsoring react-datetime for so long. Now the project returns to the community and we are **looking for contributors** to continue improving react-datetime. [Would you like to give a hand?](contribute-home.md)
99
10-
These are the docs for version 3 of the library. If you are still using the deprecated v2, [here it is its documentation](https://github.com/arqex/react-datetime/blob/2a83208452ac5e41c43fea31ef47c65efba0bb56/README.md), but we strongly recommend to migrate to version 3 in order to keep receiving updates. Please check [migrating react-datetime to version 3](migrateToV3.md) to safely update your app.
10+
**Version 3 is out!** These are the docs for version 3 of the library. If you are still using the deprecated v2, [here it is its documentation](https://github.com/arqex/react-datetime/blob/2a83208452ac5e41c43fea31ef47c65efba0bb56/README.md), but we strongly recommend to migrate to version 3 in order to keep receiving updates. Please check [migrating react-datetime to version 3](migrateToV3.md) to safely update your app.
1111

1212
## Installation
1313

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-datetime",
3-
"version": "3.0.0-beta.8",
3+
"version": "3.0.0",
44
"description": "A lightweight but complete datetime picker React.js component",
55
"homepage": "https://github.com/arqex/react-datetime",
66
"repository": {

src/App.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,10 @@ class App extends React.Component {
1111
render() {
1212
return (
1313
<div>
14-
<Datetime
15-
ref="datetime"
16-
value={ this.state.date }
17-
/>
18-
<button onClick={ this._update }>Update</button>
14+
<Datetime />
1915
</div>
2016
);
2117
}
22-
23-
_update = () => {
24-
this.setState({
25-
date: new Date( this.state.date.getTime() + 10000000000 )
26-
});
27-
}
2818
}
2919

3020
export default App;

0 commit comments

Comments
 (0)