Skip to content

Commit 1530e05

Browse files
authored
Add yarn installation instructions to README
1 parent 1ea05fd commit 1530e05

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

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

88
This project started as a fork of https://github.com/quri/react-bootstrap-datetimepicker but the code and the API has changed a lot.
99

10-
## Usage
10+
## Installation
1111

1212
Install using npm:
1313
```sh
1414
npm install --save react-datetime
1515
```
1616

17+
Install using yarn:
18+
```sh
19+
yarn add react-datetime
20+
```
21+
22+
## Usage
23+
1724
[React.js](http://facebook.github.io/react/) and [Moment.js](http://momentjs.com/) are peer dependencies for react-datetime. These dependencies are not installed along with react-datetime automatically, but your project needs to have them installed in order to make the datepicker work. You can then use the datepicker like in the example below.
1825

1926

0 commit comments

Comments
 (0)