From 4cbd48ce5bc177182c6073e777173811a4dc1f81 Mon Sep 17 00:00:00 2001 From: Alexander Gabriel Date: Sat, 20 May 2017 23:41:56 +0200 Subject: [PATCH] add instruction to install peer dependencies in readme (#135) * add instructions to install peer dependencies * adjust style --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 80989cb..cae9c3d 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,9 @@ an existing jQuery/bootstrap library (it is not a pure react port): 1) Install the module with: `npm install --save react-bootstrap-daterangepicker` -2) Create your module (you need to use something like browserify to build) +2) Install the needed peer dependencies: `npm install --save react react-dom jquery create-react-class prop-types` + +3) Create your module (you need to use something like browserify to build) ```javascript var React = require('react'); @@ -34,7 +36,7 @@ var someReactComponent = React.createClass({ }); ``` -3) Include the daterangepicker CSS in your project somewhere. The CSS file is here: [daterangepicker.css](https://raw.githubusercontent.com/skratchdot/react-bootstrap-daterangepicker/master/css/daterangepicker.css) (don't hotlink- download and host your own copy) +4) Include the daterangepicker CSS in your project somewhere. The CSS file is here: [daterangepicker.css](https://raw.githubusercontent.com/skratchdot/react-bootstrap-daterangepicker/master/css/daterangepicker.css) (don't hotlink- download and host your own copy) ```html