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

Commit

Permalink
Add yarn example under "Installing a Dependency" (#2362)
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
Brian Douglas authored and wmonk committed Aug 7, 2017
1 parent dd4ad7d commit 2bd9c8b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/react-scripts/template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,12 @@ The generated project includes React and ReactDOM as dependencies. It also inclu
npm install --save <library-name>
```

Alternatively you may also use `yarn`:

```
yarn add <library-name>
```

## Importing a Component

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

0 comments on commit 2bd9c8b

Please sign in to comment.