Skip to content

Commit

Permalink
Add yarn example under "Installing a Dependency" (facebook#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 morgs32 committed Sep 1, 2017
1 parent 6628325 commit b5935d3
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 b5935d3

Please sign in to comment.