update: update post-10

This commit is contained in:
cqh963852 committed 2022-02-05 22:46:03 +08:00
1 parent 11169871f3
commit e6b471bbe4
1 file changed
+15 -10
+15 -10
View File
@@ -6,22 +6,27 @@ sidebar_position: 10
学完了 1+1,我们可以开始学习微积分了。(🐶 保命)
## 安装 Node 环境
参考上一章
- [传送门](https://idealjs.github.io/web-tutorial/docs/post-8#%E6%9C%AC%E5%9C%B0%E6%9E%84%E5%BB%BA%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA)
## 创建一个 React 工程
我们使用 create react app 手脚架快速创建工程,其中包含工具,但是没有必要每个都了解。
我们使用 create react app 手脚架快速创建工程,其中包含大量的工具,但是没有必要每个都了解。
1. 找一个空的文件夹,打开控制台(按住 shift,右键打开控制台),输入如下命令。
```
npx create-react-app my-app
```
```
npx create-react-app my-app
```
视网络状况,可能需要 30s - 1min ,如果过久的话,建议不要等了。
视网络状况,可能需要 30s - 1min ,如果过久的话,建议不要等了。
2. 进入到项目文件夹中,启动项目
```
cd my-app
npm start
```
```
cd my-app
npm start
```