Skip to content

Commit b2f9ee3

Browse files
authored
prevent both npm and yarn commands from being copied (#11757)
1 parent 0c72a32 commit b2f9ee3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docusaurus/docs/adding-typescript.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ To start a new Create React App project with [TypeScript](https://www.typescript
1313

1414
```sh
1515
npx create-react-app my-app --template typescript
16-
17-
# or
18-
16+
```
17+
or
18+
```sh
1919
yarn create react-app my-app --template typescript
2020
```
2121

@@ -27,9 +27,9 @@ To add [TypeScript](https://www.typescriptlang.org/) to an existing Create React
2727

2828
```sh
2929
npm install --save typescript @types/node @types/react @types/react-dom @types/jest
30-
31-
# or
32-
30+
```
31+
or
32+
```sh
3333
yarn add typescript @types/node @types/react @types/react-dom @types/jest
3434
```
3535

0 commit comments

Comments
 (0)