1.新建一个文件夹 运行终端 输入命令
npx create-react-app demo01 --template typescript
demo01是项目名称 typescript是语言
创建成功后我们可以看到黑窗口是这样的
2.然后把这个文件夹放入vscode运行他 npm run start
这样我们的react项目就创建完成了
1.新建一个文件夹 运行终端 输入命令
npx create-react-app demo01 --template typescript
demo01是项目名称 typescript是语言
创建成功后我们可以看到黑窗口是这样的
2.然后把这个文件夹放入vscode运行他 npm run start
这样我们的react项目就创建完成了