Skip to content

Commit

Permalink
docs: correct install command (ant-design#30956)
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 authored Jun 11, 2021
1 parent 1d894a2 commit b9733aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions docs/react/use-in-typescript.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,12 @@ Create a new [cra-template-typescript](https://github.com/facebook/create-react-

```bash
$ yarn create react-app antd-demo-ts --template typescript

# or

npx create-react-app my-app --template typescript
```

If you are using npm (we will use yarn in the following instructions, it's ok to replace yarn with npm)

```bash
$ npx create-react-app antd-demo-ts --typescript
$ npx create-react-app antd-demo-ts --template typescript
```

Then we go inside `antd-demo-ts` and start it.
Expand Down
2 changes: 1 addition & 1 deletion docs/react/use-in-typescript.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ $ yarn create react-app antd-demo-ts --template typescript
如果你使用的是 npm(接下来我们都会用 yarn 作为例子,如果你习惯用 npm 也没问题)。

```bash
$ npx create-react-app antd-demo-ts --typescript
$ npx create-react-app antd-demo-ts --template typescript
```

然后我们进入项目并启动。
Expand Down

0 comments on commit b9733aa

Please sign in to comment.