Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Commit 2bd9c8b

Browse files
Brian Douglaswmonk
Brian Douglas
authored andcommitted
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`.
1 parent dd4ad7d commit 2bd9c8b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/react-scripts/template/README.md

+6
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,12 @@ The generated project includes React and ReactDOM as dependencies. It also inclu
281281
npm install --save <library-name>
282282
```
283283

284+
Alternatively you may also use `yarn`:
285+
286+
```
287+
yarn add <library-name>
288+
```
289+
284290
## Importing a Component
285291

286292
This project setup supports ES6 modules thanks to Babel.<br>

0 commit comments

Comments
 (0)