From 1530e05b6415bb80c43fd74c6a1dab6f655eaa44 Mon Sep 17 00:00:00 2001 From: Simon Egersand <s.egersand@gmail.com> Date: Sun, 30 Jul 2017 12:25:21 +0200 Subject: [PATCH] Add yarn installation instructions to README --- README.md | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/README.md b/README.md index 4e3583c..99019ba 100644 --- a/README.md +++ b/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. -- Gitblit v1.9.3