From b5935d3eba25f30333a82f77821e6f766a5c4c95 Mon Sep 17 00:00:00 2001 From: Brian Douglas Date: Tue, 27 Jun 2017 17:16:59 +0100 Subject: [PATCH] Add yarn example under "Installing a Dependency" (#2362) 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 ed431c9e1c2..9191e5da595 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.