Simon Egersand
2017-07-30 1530e05b6415bb80c43fd74c6a1dab6f655eaa44
Add yarn installation instructions to README
1 files modified
9 ■■■■ changed files
README.md 9 ●●●● patch | view | raw | blame | history
README.md
@@ -7,13 +7,20 @@
This project started as a fork of https://github.com/quri/react-bootstrap-datetimepicker but the code and the API has changed a lot.
## Usage
## Installation
Install using npm:
```sh
npm install --save react-datetime
```
Install using yarn:
```sh
yarn add react-datetime
```
## Usage
[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.