From df841109b68938cf188eedadbd6ada95517b8f98 Mon Sep 17 00:00:00 2001 From: Brian Douglas Date: Thu, 25 May 2017 16:23:57 +0100 Subject: [PATCH] Add yarn example under "Installing a Dependency" Due to many of the other examples in the README showing both `npm` and `yarn` commands. I have added an example of how to install a dependency using `yarn`. --- packages/react-scripts/template/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/react-scripts/template/README.md b/packages/react-scripts/template/README.md index dd7a4829928..019c494971c 100644 --- a/packages/react-scripts/template/README.md +++ b/packages/react-scripts/template/README.md @@ -281,6 +281,12 @@ The generated project includes React and ReactDOM as dependencies. It also inclu npm install --save ``` +Alternatively you may also use `yarn`: + +``` +yarn add +``` + ## Importing a Component This project setup supports ES6 modules thanks to Babel.