Skip to content

Commit 77993e7

Browse files
Brian Douglasgaearon
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 78dbf7b commit 77993e7

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)