Skip to content

Commit ad20e81

Browse files
committed
Keep updating docs
1 parent c66adc6 commit ad20e81

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
A date and time picker in the same React.js component. It can be used as a datepicker, timepicker or both at the same time. It is **highly customizable** and it even allows to edit date's milliseconds.
77

8-
These are the docs for version 3 of the library. If you are still using the deprecated v2, here it is its documentation, but we strongly recommend to migrate to version 3 in order to keep receiving updates. Please check migrating react-datetime to version 3 to safely update your app.
8+
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/YouCanBookMe/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](mirateToV3.md) to safely update your app.
99

1010
## Installation
1111

migrateToV3.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,20 @@ Version 3 is a big refactor of react-datetime. We have tried to not to change th
2323
* We are not using create-react-class anymore, bye bye 2016's react!
2424
* Updated typescript definitions.
2525
* Not depending on gulp to create the build anymore.
26-
* Updated most of the dependencies.
26+
* Updated most of the dependencies.
27+
28+
## Steps to migrate to version 3
29+
30+
The easiest way of migrating to v3 is updating the dependency in your package.json:
31+
```
32+
react-datetime: "^3.0.0"
33+
```
34+
35+
Then tell npm to start updating in your CLI:
36+
```
37+
npm update react-datetime
38+
```
39+
40+
Once the update has finishes try your app. It might seem to be working ok, but some props have changes and if they don't break your app, your pickers might be behaving a little bit differently.
41+
42+
We should better search for the following props in your code and replace them as recommended in the points below:

0 commit comments

Comments
 (0)