feat: add create react project
This commit is contained in:
1 parent
22967a984d
commit
1c62300807
4 files changed
+30
No files matched your search
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"label": "快速开始 React",
|
||||||
|
"position": 3,
|
||||||
|
"link": {
|
||||||
|
"type": "generated-index"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 63 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 58 KiB |
Reference in new issue
Block a user