feat: add create react project

This commit is contained in:
cqh963852 committed 2022-09-24 17:32:45 +08:00
1 parent 22967a984d
commit 1c62300807
4 files changed
+30

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
{
"label": "快速开始 React",
"position": 3,
"link": {
"type": "generated-index"
}
}
+23
View File
@@ -0,0 +1,23 @@
# 创建 React 工程
使用 [Create React App](https://create-react-app.dev/docs/getting-started) 脚手架工具
创建工程
继续之前使用过的 hello_world 项目,输入命令
```
npx create-react-app
```
> 受网络影响,这一步可能会等待较长时间。
或者使用
```
npx create-react-app --registry=https://registry.npmmirror.com
```
![输入命令](./enter_command.png)
![预览图](./created_react.png)
Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB